home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 September / CHIP Eylül 1998.iso / Slackwar / docs / Ethernet-HOWTO < prev    next >
Encoding:
Text File  |  1997-02-03  |  212.9 KB  |  4,899 lines

  1.   Linux Ethernet-Howto
  2.   by Paul Gortmaker
  3.   v2.65, 1 February 1998
  4.  
  5.   This is the Ethernet-Howto, which is a compilation of information
  6.   about which ethernet devices can be used for Linux, and how to set
  7.   them up. It hopefully answers all the frequently asked questions about
  8.   using ethernet cards with Linux. Note that this Howto is focused on
  9.   the hardware and low level driver aspect of the ethernet cards, and
  10.   does not cover the software end of things like ifconfig and route. See
  11.   the Network Howto for that stuff.
  12.  
  13.   1.  Introduction
  14.  
  15.   The Ethernet-Howto covers what cards you should and shouldn't buy; how
  16.   to set them up, how to run more than one, and other common problems
  17.   and questions. It contains detailed information on the current level
  18.   of support for all of the most common ethernet cards available.
  19.  
  20.   It does not cover the software end of things, as that is covered in
  21.   the NET-2 Howto. Also note that general non-Linux specific questions
  22.   about Ethernet are not (or at least they should not be) answered here.
  23.   For those types of questions, see the excellent amount of information
  24.   in the comp.dcom.lans.ethernet FAQ. You can FTP it from rtfm.mit.edu
  25.   just like all the other newsgroup FAQs.
  26.  
  27.   This present revision covers distribution kernels up to and including
  28.   2.0.33. Some information pertaining to development kernels up to
  29.   version 2.1.82 is also included.
  30.  
  31.   The Ethernet-Howto is by:
  32.  
  33.        Paul Gortmaker, gpg109@rsphy1.anu.edu.au
  34.  
  35.   The primary source of information for the initial ASCII-only version
  36.   of the Ethernet-Howto was:
  37.  
  38.        Donald J. Becker, becker@cesdis.gsfc.nasa.gov
  39.  
  40.   who we should thank for writing the vast majority of ethernet card
  41.   drivers that are presently available for Linux. He also is the
  42.   original author of the NFS server too. Thanks Donald!
  43.  
  44.   Net-surfers may wish to check out the following URL:
  45.  
  46.   Donald Becker
  47.   <http://cesdis.gsfc.nasa.gov/pub/people/becker/whoiam.html>
  48.  
  49.   Please see the Disclaimer and Copying information at the end of this
  50.   document for information about redistribution of this document and the
  51.   usual `we are not responsible for what you do...' legal type
  52.   mumblings.
  53.  
  54.   1.1.  New Versions of this Document
  55.  
  56.   New versions of this document can be retrieved via anonymous FTP from:
  57.  
  58.   Sunsite HOWTO Archive <ftp://sunsite.unc.edu/pub/Linux/docs/HOWTO/>
  59.  
  60.   and various Linux ftp mirror sites. Updates will be made as new
  61.   information and/or drivers becomes available. If this copy that you
  62.   are reading is more than 6 months old, it is either out of date, or it
  63.   means that I have been lazy and haven't updated it.
  64.  
  65.   If you have sent me an update and it is not included in the next
  66.   release, it probably means I've lost it amongst the ton of junk e-mail
  67.   I get. Please re-send it (along with an abusive message) and I will
  68.   try and make sure it gets included in the next release.
  69.  
  70.   This document was produced by using the SGML system that was
  71.   specifically set up for the Linux Howto project, and there are various
  72.   output formats available, including, postscript, dvi, ascii, html, and
  73.   soon TeXinfo.
  74.  
  75.   I would recommend viewing it in the html (via a WWW browser) or the
  76.   Postscript/dvi format. Both of these contain cross-references that are
  77.   lost in the ascii translation.
  78.  
  79.   If you want to get the official copy off sunsite, here is URL.
  80.  
  81.   Ethernet-HOWTO <http://sunsite.unc.edu/mdw/HOWTO/Ethernet-HOWTO.html>
  82.  
  83.   1.2.  Using the Ethernet-Howto
  84.  
  85.   As this guide is getting bigger and bigger, you probably don't want to
  86.   spend the rest of your afternoon reading the whole thing. And the good
  87.   news is that you don't have to read it all.
  88.  
  89.   Chances are you are reading this document beacuse you can't get things
  90.   to work and you don't know what to do or check. The next section
  91.   (``HELP - It doesn't work!'')  is aimed at newcomers to linux and will
  92.   point you in the right direction.
  93.  
  94.   Typically the same problems and questions are asked over and over
  95.   again by different people. Chances are your specific problem or
  96.   question is one of these frequently asked questions, and is answered
  97.   in the FAQ portion of this document .  (``The FAQ section'').
  98.   Everybody should have a look through this section before posting for
  99.   help.
  100.  
  101.   If you haven't got an ethernet card, then you will want to start with
  102.   deciding on a card.  (``What card should I buy...'')
  103.  
  104.   If you have already got an ethernet card, but are not sure if you can
  105.   use it with Linux, then you will want to read the section which
  106.   contains specific information on each manufacturer, and their cards.
  107.   (``Vendor Specific...'')
  108.  
  109.   If you are interested in some of the technical aspects of the Linux
  110.   device drivers, then you can have a browse of the section with this
  111.   type of information.  (``Technical Information'')
  112.  
  113.   1.3.  HELP - It doesn't work!
  114.  
  115.   Okay, don't panic. This will lead you through the process of getting
  116.   things working, even if you have no prior background in linux or
  117.   ethernet hardware.
  118.  
  119.   First thing you need to do is figure out what model your card is so
  120.   you can determine if Linux has a driver for that particular card.
  121.   Different cards typically have different ways of being controlled by
  122.   the host computer, and the linux driver (if there is one) contains
  123.   this control information in a format that allows linux to use the
  124.   card.  If you don't have any manuals or anything of the sort that tell
  125.   you anything about the card model, then you can try the section on
  126.   helping with mystery cards (reference section: ``Identifying an
  127.   Unknown Card'').
  128.  
  129.   Now that you know what type of card you have, read through the details
  130.   of your particular card in the card specific section (reference
  131.   section: ``Vendor Specific...'')  which lists in alphabetical order,
  132.   card manufacturers, individual model numbers and whether it has a
  133.   linux driver or not. If it lists it as `Not Supported' you can pretty
  134.   much give up here. If you can't find your card in that list, then
  135.   check to see if your card manual lists it as being `compatible' with
  136.   another known card type. For example there are hundreds, if not
  137.   thousands of different cards made to be compatible with the original
  138.   Novell NE2000 design.
  139.  
  140.   Assuming you have found out that your card does have a linux driver,
  141.   you now need to go back to the CD-ROM or whatever you installed from,
  142.   and find the list of pre-built kernels that comes with it. The kernel
  143.   is the core operating system that is first loaded at boot, and
  144.   contains drivers for various pieces of hardware, among other things.
  145.   Just because linux has a driver for your card does not mean that it is
  146.   built into every kernel. Depending on who made the CD-ROM, there may
  147.   be only a few pre-built kernels, and a whole bunch of drivers as
  148.   smaller separate modules, or there may be a whole lot of kernels,
  149.   covering a vast combination of built-in driver combinations. Hopefully
  150.   there will also be a text file with them that lists what drivers are
  151.   included into which kernels. Try and find a kernel that is listed as
  152.   having the driver you need as built into it, or try and find a module
  153.   with the name of the driver you need.
  154.  
  155.   If you found a pre-built kernel that has your driver in it, you will
  156.   want to boot that kernel instead of the one you are presently using.
  157.   Most linux systems use LILO to boot, and will have installed the LILO
  158.   documentation on your system.  Follow the instructions in that for
  159.   booting another kernel, as they are beyond the scope of this document.
  160.  
  161.   If you instead found a small module that contains the driver, you will
  162.   need to attach this module to the kernel after it has booted up. See
  163.   the information that came with your distribution on installing and
  164.   using modules, along with the module section in this document.
  165.   (``Using the Ethernet Drivers as Modules'')
  166.  
  167.   If you didn't find either a pre-built kernel with your driver, or a
  168.   module form of the driver, chances are you have a typically uncommon
  169.   card, and you will have to build your own kernel with that driver
  170.   included. Once you have linux installed, building a custom kernel is
  171.   not difficult at all. You essentially answer yes or no to what you
  172.   want the kernel to contain, and then tell it to build it. There is a
  173.   Kernel-HowTo that will help you along.
  174.  
  175.   At this point you should have somehow managed to be booting a kernel
  176.   with your driver built in, or be loading it as a module.  About half
  177.   of the problems people have are related to not having driver loaded
  178.   one way or another, so you may find things work now.
  179.  
  180.   If it still doesn't work, then you need to verify that the kernel is
  181.   indeed detecting the card. To do this, you need to type dmesg | more
  182.   when  logged in after the system has booted and all modules have been
  183.   loaded.  This will allow you to review the boot messages that the
  184.   kernel scrolled up the screen during the boot process.  If the card
  185.   has been detected, you should see somewhere in that list a message
  186.   from your card's driver that starts with eth0, mentions the driver
  187.   name and the hardware parameters (interrupt setting, input/output port
  188.   address, etc) that the card is set for. If you don't see a message
  189.   like this, then the driver didn't detect your card, and that is why
  190.   things aren't working. See the FAQ (``The FAQ Section'') for what to
  191.   do if your card is not detected. If you have a NE2000 compatible,
  192.   there is also some NE2000 specific tips on getting a card detected in
  193.   the FAQ section as well.
  194.  
  195.   If the card is detected, but the detection message reports some sort
  196.   of error, like a resource conflict, then the driver probably won't
  197.   have initialized properly and the card still wont be useable. Most
  198.   common error messages of this sort are also listed in the FAQ section,
  199.   along with a solution.
  200.  
  201.   If the detection message seems okay, then double check the card
  202.   resources reported by the driver against those that the card is
  203.   physically set for (either by little black jumpers on the card, or by
  204.   a software utility supplied by the card manufacturer.)  These must
  205.   match exactly. For example, if you have the card jumpered or
  206.   configured to IRQ 15 and the driver reports IRQ 10 in the boot
  207.   messages, things will not work. The FAQ section discusses the most
  208.   common cases of drivers incorrectly detecting the configuration
  209.   information of various cards.
  210.  
  211.   At this point, you have managed to get you card detected with all the
  212.   correct parameters, and hopefully everything is working.  If not, then
  213.   you either have a software configuration error, or a hardware
  214.   configuration error. A software configuration error is not setting up
  215.   the right network addresses for the ifconfig and route commands, and
  216.   details of how to do that are fully described in the Network HowTo and
  217.   the `Network Administrator's Guide' which both probably came on the
  218.   CD-ROM you installed from.
  219.  
  220.   A hardware configuration error is when some sort of resource conflict
  221.   or mis-configuration (that the driver didn't detect at boot) that
  222.   stops the card from working properly. This typically can be observed
  223.   in one of three different ways. (1) You get an error message when
  224.   ifconfig tries to open the device for use, such as ``SIOCSFFLAGS: Try
  225.   again''. (2) The driver reports eth0 error messages (viewed by dmesg |
  226.   more) or strange inconsistencies for each time it tries to send or
  227.   receive data. (3) Typing cat /proc/net/dev shows non-zero numbers in
  228.   one of the errs, drop, fifo, frame or carrier columns for eth0.  Most
  229.   of the typical hardware configuration errors are also discussed in the
  230.   FAQ section.
  231.  
  232.   Well, if you have got to this point and things still aren't working,
  233.   read the FAQ section of this document, read the vendor specific
  234.   section detailing your particular card, and if it still doesn't work
  235.   then you may have to resort to posting to an appropriate newsgroup for
  236.   help. If you do post, please detail all relevant information in that
  237.   post, such as the card brand, the kernel version, the driver boot
  238.   messages, the output from cat /proc/net/dev, a clear description of
  239.   the problem, and of course what you have already tried to do in an
  240.   effort to get things to work.
  241.  
  242.   You would be surprised at how many people post useless things like
  243.   ``Can someone help me? My ethernet doesn't work.'' and nothing else.
  244.   Readers of the newsgroups tend to ignore such silly posts, whereas a
  245.   detailed and informational problem description may allow a `linux-
  246.   guru' to spot your problem right away.
  247.  
  248.   2.  What card should I buy for Linux?
  249.  
  250.   The answer to this question depends heavily on exactly what you intend
  251.   on doing with your net connection, and how much traffic it will see.
  252.  
  253.   If you only expect a single user to be doing the occasional ftp
  254.   session or WWW connection, then an old 8 bit card will probably keep
  255.   you happy.
  256.  
  257.   If you intend to set up a server, and you require the CPU overhead of
  258.   Rx'ing and Tx'ing ether packets to be kept at a minimum, you probably
  259.   want to look at one of the newer PCI cards with the DEC 21040 chip, or
  260.   the AMD PCnet-PCI chip.
  261.  
  262.   If you fall somewhere in the middle of the above, then any one of the
  263.   16 bit ISA cards with stable drivers will do the job for you.
  264.  
  265.   2.1.  So What Drivers are Stable?
  266.  
  267.   Of the 16 bit ISA cards, the following drivers are very mature, and
  268.   you shouldn't have any problems if you buy a card that uses these
  269.   drivers.
  270.  
  271.   SMC-Ultra/EtherEZ, WD80x3, 3c509, 3c503/16, Lance, NE2000.
  272.  
  273.   This is not to say that all the other drivers are unstable.  It just
  274.   happens that the above are the oldest and most used of all the linux
  275.   drivers, making them the safest choice.
  276.  
  277.   Note that some el-cheapo motherboards can have trouble with the bus-
  278.   mastering that the lance cards do, and some el-cheapo NE2000 clones
  279.   can have trouble getting detected at boot.
  280.  
  281.   As for PCI cards, the PCnet-PCI cards that use the lance driver are a
  282.   safe choice (except for the Boca cards as they have hardware flaws).
  283.   The Allied Telsyn AT2450 is a PCnet-PCI implementation that is known
  284.   to work well.
  285.  
  286.   The DEC 21040 `tulip' driver and the 3c59x `vortex' driver are
  287.   relatively new drivers, but have proven themselves to be quite stable
  288.   already.
  289.  
  290.   2.2.  Eight bit vs 16 bit Cards
  291.  
  292.   You probably can't buy a new 8 bit ISA ethercard anymore, but you will
  293.   find lots of them turning up at computer swap meets and the like for
  294.   the next few years, at very low prices.  This will make them popular
  295.   for ``home-ethernet'' systems.
  296.  
  297.   Some 8 bit cards that will provide adequate performance for light to
  298.   average use are the wd8003, the 3c503 and the ne1000.  The 3c501
  299.   provides poor performance, and these poor 12 year old relics of the XT
  300.   days should be avoided.
  301.  
  302.   The 8 bit data path doesn't hurt performance that much, as you can
  303.   still expect to get about 500 to 800kB/s ftp download speed to an 8
  304.   bit wd8003 card (on a fast ISA bus) from a fast host.  And if most of
  305.   your net-traffic is going to remote sites, then the bottleneck in the
  306.   path will be elsewhere, and the only speed difference you will notice
  307.   is during net activity on your local subnet.
  308.  
  309.   2.3.  32 Bit / VLB / PCI Ethernet Cards
  310.  
  311.   There aren't many 32 bit ethercard device drivers because there aren't
  312.   that many 32 bit ethercards.  There aren't many 32 bit ethercards out
  313.   there because a 10Mbs network doesn't justify spending a large price
  314.   increment for the 32 bit interface. Now that 100Mbs networks are
  315.   becoming more common, this is changing though.
  316.  
  317.   See ``Programmed I/O vs. ...'' as to why having a 10Mbps ethercard on
  318.   an 8MHz ISA bus is really not a bottleneck. Even though having the
  319.   ethercard on a fast bus won't necessarily mean faster transfers, it
  320.   will usually mean reduced CPU overhead, which is good for multi-user
  321.   systems.
  322.  
  323.   AMD has the 32 bit PCnet-VLB and PCnet-PCI chips.  See ``AMD
  324.   PCnet-32'' for info on the 32 bit versions of the LANCE / PCnet-ISA
  325.   chip.
  326.  
  327.   The DEC 21040 PCI chip is another option (see ``DEC 21040'') for
  328.   power-users.  Many manufacturers produce cards that use this chip, and
  329.   the prices of such no-name cards is usually quite cheap.
  330.  
  331.   3Com's `Vortex' and `Boomerang' PCI cards are also another option, and
  332.   the price is quite cheap if you can get one under their evaluation
  333.   deal while it lasts.  (see ``3c590/3c595'')
  334.  
  335.   Various clone manufacturers have started making PCI ne2000 clones
  336.   based on a RealTek or Winbond chip. These cards are also supported by
  337.   the linux ne2000 driver for v2.0.31 and newer kernels.  However you
  338.   only benefit from the faster bus interface, as the card is still using
  339.   the age-old ne2000 driver interface.
  340.  
  341.   2.4.  Available 100Mbs Cards and Drivers
  342.  
  343.   The present list of supported 100Mbs hardware is as follows: cards
  344.   with the DEC 21140 chip; the 3c595/3c90x Vortex cards; and the HP
  345.   100VG ANY-LAN. The drivers for the first two are quite stable, but
  346.   feedback on the HP driver has been low so far.
  347.  
  348.   The EtherExpressPro10/100B now also has a driver in the current v2.0
  349.   kenrel. For updates and/or support, see the relevant section in this
  350.   document.
  351.  
  352.   The 21140 100Base-? chip is supported with the same driver as its
  353.   10Mbs counterpart, the 21040. SMC's 100Mbs EtherPower PCI card uses
  354.   this chip. As with the 21040, you have a choice of two drivers to pick
  355.   from.
  356.  
  357.   Also have a look at the information on Donald's WWW site, at the
  358.   following URL:
  359.  
  360.   100Mbs Ethernet <http://cesdis.gsfc.nasa.gov/linux/misc/100mbs.html>
  361.  
  362.   Donald had done a fair bit of work with the SMC EtherPower-10/100
  363.   cards, and reported getting about 4.6MB/s application to application
  364.   with TCP on P5-100 Triton machines.
  365.  
  366.   (See ``3c595'' and ``DEC 21140'' for more details.)
  367.  
  368.   For 100VG information, see the following section, and this URL on
  369.   Donald's Site:
  370.  
  371.   Donald's 100VG Page
  372.   <http://cesdis.gsfc.nasa.gov/linux/drivers/100vg.html>
  373.  
  374.   You may also be interested in looking at:
  375.  
  376.   Dan Kegel's Fast Ethernet Page <http://alumni.caltech.edu/~dank/fe/>
  377.  
  378.   2.5.  100VG versus 100BaseT
  379.  
  380.   The following blurb from yet another one of Donald's informative
  381.   comp.os.linux postings summarizes the situation quite well:
  382.  
  383.   ``For those not in the know, there are two competing 100Mbs ethernet
  384.   standards, 100VG (aka 100baseVG and 100VG-AnyLAN) and 100baseT (with
  385.   100baseTx, 100baseT4 and 100baseFx cable types).
  386.  
  387.   100VG was on the market first, and I feel that it is better engineered
  388.   than 100baseTx.  I was rooting for it to win, but it clearly isn't
  389.   going to.  HP et al. made several bad choices:
  390.  
  391.   1) Delaying the standard so that they could accommodate IBM and
  392.   support token ring frames.  It `seemed like a good idea at the time',
  393.   since it would enable token ring shops to upgrade without the managers
  394.   having to admit they made a very expensive mistake committing to the
  395.   wrong technology.  But there was nothing to be gained, as the two
  396.   frame types couldn't coexist on a network, token ring is a morass of
  397.   complexity, and IBM went with 100baseT anyway.
  398.  
  399.   2) Producing only ISA and EISA cards.  (A PCI model was only recently
  400.   announced.)  The ISA bus is too slow for 100mbs, and relatively few
  401.   EISA machines exist.  At the time VLB was common, fast, and cheap with
  402.   PCI a viable choice.  But "old-timer" wisdom held that servers would
  403.   stay with the more expensive EISA bus.
  404.  
  405.   3) Not sending me a databook.  Yes, this action was the real reason
  406.   for the 100VGs downfall :-).  I called all over for programming info,
  407.   and all I could get was a few page color glossy brochure from AT&T
  408.   describing how wonderful the Regatta chipset was.''
  409.  
  410.   2.6.  Programmed I/O vs. Shared Memory vs. DMA
  411.  
  412.   Ethernet is 10Mbs. (Don't be pedantic, 3Mbs and 100Mbs don't count.)
  413.   If you can already send and receive back-to-back packets, you just
  414.   can't put more bits over the wire. Every modern ethercard can receive
  415.   back-to-back packets. The Linux DP8390 drivers (wd80x3, SMC-Ultra,
  416.   3c503, ne2000, etc) come pretty close to sending back-to-back packets
  417.   (depending on the current interrupt latency) and the 3c509 and AT1500
  418.   hardware have  no problem at all automatically sending back-to-back
  419.   packets.
  420.  
  421.   The ISA bus can do 5.3MB/sec (42Mb/sec), which sounds like more than
  422.   enough. You can use that bandwidth in several ways, listed below.
  423.  
  424.   2.6.1.  Programmed I/O (e.g. NE2000, 3c509)
  425.  
  426.   Pro: Doesn't use any constrained system resources, just a few I/O
  427.   registers, and has no 16M limit.
  428.  
  429.   Con: Usually the slowest transfer rate, the CPU is waiting the whole
  430.   time, and interleaved packet access is usually difficult to
  431.   impossible.
  432.  
  433.   2.6.2.  Shared memory (e.g. WD80x3, SMC-Ultra, 3c503)
  434.  
  435.   Pro: Simple, faster than programmed I/O, and allows random access to
  436.   packets. The linux drivers compute the checksum of incoming IP packets
  437.   as they are copied off the card, resulting in a further reduction of
  438.   CPU usage vs. an equivalent PIO card.
  439.  
  440.   Con: Uses up memory space (a big one for DOS users, essentially a non-
  441.   issue under Linux), and it still ties up the CPU.
  442.  
  443.   2.6.3.  Slave (normal) Direct Memory Access (e.g. none for Linux!)
  444.  
  445.   Pro: Frees up the CPU during the actual data transfer.
  446.  
  447.   Con: Checking boundary conditions, allocating contiguous buffers, and
  448.   programming the DMA registers makes it the slowest of all techniques.
  449.   It also uses up a scarce DMA channel, and requires aligned low memory
  450.   buffers.
  451.  
  452.   2.6.4.  Bus Master Direct Memory Access (e.g. LANCE, DEC 21040)
  453.  
  454.   Pro: Frees up the CPU during the data transfer, can string together
  455.   buffers, can require little or no CPU time lost on the ISA bus.
  456.  
  457.   Con: Requires low-memory buffers and a DMA channel. Any bus-master
  458.   will have problems with other bus-masters that are bus-hogs, such as
  459.   some primitive SCSI adaptors. A few badly-designed motherboard
  460.   chipsets have problems with bus-masters. And a reason for not using
  461.   any type of DMA device is using a 486 processor designed for plug-in
  462.   replacement of a 386: these processors must flush their cache with
  463.   each DMA cycle. (This includes the Cx486DLC, Ti486DLC, Cx486SLC,
  464.   Ti486SLC, etc.)
  465.  
  466.   2.7.  Type of cable that your card should support
  467.  
  468.   If you are setting up a small ``personal'' network, you will probably
  469.   want to use thinnet or thin ethernet cable. This is the style with the
  470.   standard BNC connectors. See ``Cables, Coax...''  for other concerns
  471.   with different types of ethernet cable.
  472.  
  473.   Most ethercards also come in a `Combo' version for only $10-$20 more.
  474.   These have both twisted pair and thinnet transceiver built-in,
  475.   allowing you to change your mind later.
  476.  
  477.   The twisted pair cables, with the RJ-45 (giant phone jack) connectors
  478.   is technically called 10BaseT. You may also hear it called UTP
  479.   (Unsheilded Twisted Pair).
  480.  
  481.   The thinnet, or thin ethernet cabling, (RG-58 coaxial cable) with the
  482.   BNC (metal push and turn-to-lock) connectors is technically called
  483.   10Base2.
  484.  
  485.   The older thick ethernet (10mm coaxial cable) which is only found in
  486.   older installations is called 10Base5.
  487.  
  488.   Large corporate installations will most likely use 10BaseT instead of
  489.   10Base2. 10Base2 does not offer an easy upgrade path to the new
  490.   upcoming 100Base-whatever.
  491.  
  492.   3.  Frequently Asked Questions
  493.  
  494.   Here are some of the more frequently asked questions about using Linux
  495.   with an Ethernet connection. Some of the more specific questions are
  496.   sorted on a `per manufacturer basis'.  However, since this document is
  497.   basically `old' by the time you get it, any `new' problems will not
  498.   appear here instantly. For these, I suggest that you make efficient
  499.   use of your newsreader. For example, nn users would type
  500.  
  501.        nn -xX -s'3c'
  502.  
  503.   to get all the news articles in your subscribed list that have `3c' in
  504.   the subject. (ie. 3com, 3c509, 3c503, etc.)  The moral: Read the man
  505.   page for your newsreader.
  506.  
  507.   3.1.  Alpha Drivers -- Getting and Using them
  508.  
  509.   I heard that there is an updated or alpha driver available for my
  510.   card. Where can I get it?
  511.  
  512.   The newest of the `new' drivers can be found on Donald's ftp site:
  513.   cesdis.gsfc.nasa.gov in the /pub/linux/ area. Things change here quite
  514.   frequently, so just look around for it.  Alternatively, it may be
  515.   easier to use a WWW browser on:
  516.  
  517.   Don's Linux Home Page
  518.   <http://cesdis.gsfc.nasa.gov/pub/linux/linux.html>
  519.  
  520.   to locate the driver that you are looking for. (Watch out for WWW
  521.   browsers that silently munge the source by replacing TABs with spaces
  522.   and so on - use ftp, or at least an FTP URL for downloading if
  523.   unsure.)
  524.  
  525.   Now, if it really is an alpha, or pre-alpha driver, then please treat
  526.   it as such. In other words, don't complain because you can't figure
  527.   out what to do with it. If you can't figure out how to install it,
  528.   then you probably shouldn't be testing it.  Also, if it brings your
  529.   machine down, don't complain. Instead, send us a well documented bug
  530.   report, or even better, a patch!
  531.  
  532.   Note that some of the `useable' experimental/alpha drivers have been
  533.   included in the standard kernel source tree. When running make config
  534.   one of the first things you will be asked is whether to ``Prompt for
  535.   development and/or incomplete code/drivers''.  You will have to answer
  536.   `Y' here to get asked about including any alpha/experiemntal drivers.
  537.  
  538.   3.2.  Using More than one Ethernet Card per Machine
  539.  
  540.   What needs to be done so that Linux can run two ethernet cards?
  541.  
  542.   The hooks for multiple ethercards are all there.  However, note that
  543.   at the moment only one ethercard is auto-probed for by default.  This
  544.   helps to avoid possible boot time hangs caused by probing sensitive
  545.   cards.
  546.  
  547.   There are two ways that you can enable auto-probing for the second
  548.   (and third, and...) card. The easiest method is to pass boot-time
  549.   arguments to the kernel, which is usually done by LILO. Probing for
  550.   the second card can be achieved by using a boot-time argument as
  551.   simple as ether=0,0,eth1. In this case eth0 and eth1 will be assigned
  552.   in the order that the cards are found at boot.  Say if you want the
  553.   card at 0x300 to be eth0 and the card at 0x280 to be eth1 then you
  554.   could use
  555.  
  556.        LILO: linux ether=5,0x300,eth0 ether=15,0x280,eth1
  557.  
  558.   The ether= command accepts more than the IRQ + i/o + name shown above.
  559.   Please have a look at ``Passing Ethernet Arguments...''  for the full
  560.   syntax, card specific parameters, and LILO tips.
  561.  
  562.   These boot time arguments can be made permanent so that you don't have
  563.   to re-enter them every time. See the LILO configuration option
  564.   `append' in the LILO manual.
  565.  
  566.   The second way (not recommended) is to edit the file Space.c and
  567.   replace the 0xffe0 entry for the i/o address with a zero. The 0xffe0
  568.   entry tells it not to probe for that device -- replacing it with a
  569.   zero will enable autoprobing for that device.
  570.  
  571.   Note that if you are intending to use Linux as a gateway between two
  572.   networks, you will have to re-compile a kernel with IP forwarding
  573.   enabled. Usually using an old AT/286 with something like the `kbridge'
  574.   software is a better solution.
  575.  
  576.   If you are viewing this while net-surfing, you may wish to look at a
  577.   mini-howto Donald has on his WWW site. Check out Multiple Ethercards
  578.   <http://cesdis.gsfc.nasa.gov/linux/misc/multicard.html>.
  579.  
  580.   For module users with 8390 based cards, you can have a single module
  581.   control multiple cards  of the same brand. Please see ``8390 Based
  582.   Cards as Modules'' for module specific information about using
  583.   multiple cards.
  584.  
  585.   3.3.  Poor NE2000 Clones
  586.  
  587.   Here is a list of some of the NE-2000 clones that are known to have
  588.   various problems. Most of them aren't fatal. In the case of the ones
  589.   listed as `bad clones' -- this usually indicates that the cards don't
  590.   have the two NE2000 identifier bytes. NEx000-clones have a Station
  591.   Address PROM (SAPROM) in the packet buffer memory space.  NE2000
  592.   clones have 0x57,0x57 in bytes 0x0e,0x0f of the SAPROM, while other
  593.   supposed NE2000 clones must be detected by their SA prefix.
  594.  
  595.   This is not a comprehensive list of all the NE2000 clones that don't
  596.   have the 0x57,0x57 in bytes 0x0e,0x0f of the SAPROM. There are
  597.   probably hundreds of them. If you get a card that causes the driver to
  598.   report an `invalid signature' then you will have to add your cards
  599.   signature to the driver. The process for doing this is described
  600.   below.
  601.  
  602.   Accton NE2000 -- might not get detected at boot, see below.
  603.  
  604.   Artisoft LANtastic AE-2 -- OK, but has flawed error-reporting
  605.   registers.
  606.  
  607.   AT-LAN-TEC NE2000 -- clone uses Winbond chip that traps SCSI drivers
  608.  
  609.   ShineNet LCS-8634 -- clone uses Winbond chip that traps SCSI drivers
  610.  
  611.   Cabletron E10**, E20**, E10**-x, E20**-x -- bad clones, but the driver
  612.   checks for them. See ``E10**''.
  613.  
  614.   D-Link Ethernet II -- bad clones, but the driver checks for them. See
  615.   ``DE-100 / DE-200''.
  616.  
  617.   DFI DFINET-300, DFINET-400 -- bad clones, but the driver checks for
  618.   them. See ``DFI-300 / DFI-400''
  619.  
  620.   EtherNext UTP8, EtherNext UTP16 -- bad clones, but the driver checks
  621.   for them.
  622.  
  623.   3.4.  Problems with NE1000 / NE2000 cards (and clones)
  624.  
  625.   Problem: PCI NE2000 clone card is not detected at boot with v2.0.x.
  626.  
  627.   Reason: The ne.c driver up to v2.0.30 only knows about the PCI ID
  628.   number of RealTek 8029 based clone cards. Since then, Winbond and
  629.   Compex have also released PCI NE2000 clone cards, with different PCI
  630.   ID numbers, and hence the driver doesn't detect them.
  631.  
  632.   Solution: The easiest solution is to upgrade to a v2.0.31 (or newer)
  633.   version of the linux kernel. It knows the ID numbers of about five
  634.   different NE2000-PCI chips, and will detect them automatically at boot
  635.   or at module loading time.
  636.  
  637.   Alternatively, after booting, you can get the I/O address (and
  638.   interrupt) that the card will use from a  ``cat /proc/pci''.  Say for
  639.   example it reports IRQ 9 and I/O at 0xffe0, then at the LILO boot
  640.   prompt you can add ether=9,0xffe0,eth0 which will point the driver
  641.   right at your card and avoid the PCI based probing altogether. (Future
  642.   v2.1+ kernels will know about the PCI IDs of Winbond and Compex NE2000
  643.   clones as well, so this won't be necessary then.)
  644.  
  645.   Problem: PCI NE2000 clone card is reported as an ne1000 (8 bit card!)
  646.   at boot or when I load the ne.o module for v2.0.x, and hence doesn't
  647.   work.
  648.  
  649.   Reason: Some PCI clones don't implement byte wide access (and hence
  650.   are not truly 100% NE2000 compatible). This causes the probe to think
  651.   they are NE1000 cards if the PCI probing wasn't used (which it isn't
  652.   when an explicit I/O address is given with the module or at boot.)
  653.  
  654.   Solution: You can upgrade to v2.0.31 (or newer) as described above, or
  655.   manually make the following change to drivers/net/ne.c:
  656.  
  657.   ______________________________________________________________________
  658.   -       if (pci_irq_line)
  659.   +       if (pci_irq_line || ioaddr >= 0x400)
  660.               wordlength = 2;   /* Catch broken PCI cards mentioned above. */
  661.   ______________________________________________________________________
  662.  
  663.   and then recompile the module (or the kernel). Note that v2.0.31 and
  664.   recent v2.1.x revisons do not require an I/O address for detecting
  665.   most PCI cards at boot or with the ne.o module - it is best to let it
  666.   autodetect the card with these versions.
  667.  
  668.   Problem: PCI NE2000 card gets terrible performance, even when reducing
  669.   the window size as described in the Performance Tips section.
  670.  
  671.   Reason: The spec sheets for the original 8390 chip,  desgined and sold
  672.   over ten years ago, noted that a dummy read from the chip was required
  673.   before the write operation for maximum reliablity.  The driver has the
  674.   facility to do this but it has been disabled by default since the v1.2
  675.   days, once the real problem causing the crashes back then was located.
  676.   One user has reported that re-enabling this `mis-feature' helped their
  677.   performance with a cheap PCI NE2000 clone card.
  678.  
  679.   Solution: Since it has only been reported as a solution by one person,
  680.   don't get your hopes up. Re-enabling the read before write fix is done
  681.   by simply editing the file linux/drivers/net/ne.c, uncommenting the
  682.   line containing NE_RW_BUGFIX and then rebuilding the kernel or module
  683.   as appropriate. Please send an e-mail describing the performance
  684.   difference and type of card/chip you have if this helps you.
  685.  
  686.   Problem: NE*000 card hangs machine, sometimes with a `DMA conflict'
  687.   message, sometimes completely silently.
  688.  
  689.   Reason: There were some bugs in the driver and the upper networking
  690.   layers that caused this. They have been fixed long ago, in kernels
  691.   v1.2.9 and above. Upgrade your kernel.
  692.  
  693.   Problem: NE*000 card hangs machine during NE probe, or can not read
  694.   station address properly.
  695.  
  696.   Reason: Kernels previous to v1.3.7 did not fully reset the card after
  697.   finding it at boot. Some cheap cards are not left in a reasonable
  698.   state after power-up and need to be fully reset before any attempt is
  699.   made to use them. Also, a previous probe may have upset the NE card
  700.   prior to the NE probe taking place. In that case, look in to using the
  701.   ``reserve='' boot keyword to protect the card from other probes.
  702.  
  703.   Problem: NE*000 driver reports `not found (no reset ack)' during boot
  704.   probe.
  705.  
  706.   Reason: This is related to the above change. After the initial
  707.   verification that an 8390 is at the probed i/o address, the reset is
  708.   performed. When the card has completed the reset, it is supposed to
  709.   acknowedge that the reset has completed.  Your card doesn't, and so
  710.   the driver assumes that no NE card is present.
  711.  
  712.   Solution: You can tell the driver that you have a bad card by using an
  713.   otherwise unused mem_end hexidecimal value of 0xbad at boot time. You
  714.   have to also supply a non-zero i/o base for the card when using the
  715.   0xbad override. For example, a card that is at 0x340 that doesn't ack
  716.   the reset would use something like:
  717.  
  718.        LILO: linux ether=0,0x340,0,0xbad,eth0
  719.  
  720.   This will allow the card detection to continue, even if your card
  721.   doesn't ACK the reset. If you are using the driver as a module, then
  722.   you can supply the option bad=0xbad just like you supply the I/O
  723.   address. Note that v2.0.x modules won't understand the bad= option, as
  724.   it was added during the v2.1 development.
  725.  
  726.   Problem: NE*000 card hangs machine at first network access.
  727.  
  728.   Reason: This problem has been reported for kernels as old as 1.1.57 to
  729.   the present. It appears confined to a few software configurable clone
  730.   cards. It appears that they expect to be initialized in some special
  731.   way.
  732.  
  733.   Solution: Several people have reported that running the supplied DOS
  734.   software config program and/or the supplied DOS driver prior to warm
  735.   booting (i.e. loadlin or the `three-finger-salute') into linux allowed
  736.   the card to work. This would indicate that these cards need to be
  737.   initialized in a particular fashion, slightly different than what the
  738.   present Linux driver does.
  739.  
  740.   Problem: NE*000 ethercard at 0x360 doesn't get detected anymore.
  741.  
  742.   Reason: Recent kernels ( > 1.1.7X) have more sanity checks with
  743.   respect to overlapping i/o regions. Your NE2000 card is 0x20 wide in
  744.   i/o space, which makes it hit the parallel port at 0x378.  Other
  745.   devices that could be there are the second floppy controller (if
  746.   equipped) at 0x370 and the secondary IDE controller at 0x376--0x377.
  747.   If the port(s) are already registered by another driver, the kernel
  748.   will not let the probe happen.
  749.  
  750.   Solution: Either move your card to an address like 0x280, 0x340, 0x320
  751.   or compile without parallel printer support.
  752.  
  753.   Problem: Network `goes away' every time I print something (NE2000)
  754.  
  755.   Reason: Same problem as above, but you have an older kernel that
  756.   doesn't check for overlapping i/o regions. Use the same fix as above,
  757.   and get a new kernel while you are at it.
  758.  
  759.   Problem: NE*000 ethercard probe at 0xNNN: 00 00 C5 ... not found.
  760.   (invalid signature yy zz)
  761.  
  762.   Reason: First off, do you have a NE1000 or NE2000 card at the addr.
  763.   0xNNN?  And if so, does the hardware address reported look like a
  764.   valid one? If so, then you have a poor NE*000 clone. All NE*000 clones
  765.   are supposed to have the value 0x57 in bytes 14 and 15 of the SA PROM
  766.   on the card. Yours doesn't -- it has `yy zz' instead.
  767.  
  768.   Solution: There are two ways to get around this. The easiest is to use
  769.   an 0xbad mem_end value as described  above for the `no reset ack'
  770.   problem. This will bypass the signature check, as long as a non-zero
  771.   i/o base is also given. This way no recompilation of the kernel is
  772.   required.
  773.  
  774.   The second method involves changing the driver itself, and then
  775.   recompiling your kernel.  The driver (/usr/src/linux/drivers/net/ne.c)
  776.   has a "Hall of Shame" list at about line 42. This list is used to
  777.   detect poor clones.  For example, the DFI cards use `DFI' in the first
  778.   3 bytes of the PROM, instead of using 0x57 in bytes 14 and 15, like
  779.   they are supposed to.
  780.  
  781.   You can determine what the first 3 bytes of your card PROM are by
  782.   adding a line like:
  783.  
  784.       printk("PROM prefix: %2.2x %2.2x %2.2x\n",SA_prom[0],SA_prom[1],SA_prom[2]);
  785.  
  786.   into the driver, right after the error message you got above, and just
  787.   before the "return ENXIO" at line 227.
  788.  
  789.   Reboot with this change in place, and after the detection fails, you
  790.   will get the three bytes from the PROM like the DFI example above.
  791.   Then you can add your card to the bad_clone_list[] at about line 43.
  792.   Say the above line printed out:
  793.  
  794.   PROM prefix: 0x3F 0x2D 0x1C
  795.  
  796.   after you rebooted. And say that the 8 bit version of your card was
  797.   called the "FOO-1k" and the 16 bit version the "FOO-2k". Then you
  798.   would add the following line to the bad_clone_list[]:
  799.  
  800.        {"FOO-1k", "FOO-2k", {0x3F, 0x2D, 0x1C,}},
  801.  
  802.   Note that the 2 name strings you add can be anything -- they are just
  803.   printed at boot, and not matched against anything on the card.  You
  804.   can also take out the "printk()" that you added above, if you want.
  805.   It shouldn't hit that line anymore anyway. Then recompile once more,
  806.   and your card should be detected.
  807.  
  808.   Problem: Errors like DMA address mismatch
  809.  
  810.   Is the chip a real NatSemi 8390? (DP8390, DP83901, DP83902 or
  811.   DP83905)?  If not, some clone chips don't correctly implement the
  812.   transfer verification register. MS-DOS drivers never do error
  813.   checking, so it doesn't matter to them. (Note: The DMA address check
  814.   is not done by default as of v1.2.4 for performance reasons. Enable it
  815.   with the `NE_SANITY' define in ne.c if you want the check done.)
  816.  
  817.   Are most of the messages off by a factor of 2?  If so:  Are you using
  818.   the NE2000 in a 16 bit slot?  Is it jumpered to use only 8 bit
  819.   transfers?
  820.  
  821.   The Linux driver expects a NE2000 to be in a 16 bit slot. A NE1000 can
  822.   be in either size slot. This problem can also occur with some clones,
  823.   notably older D-Link 16 bit cards, that don't have the correct ID
  824.   bytes in the station address PROM.
  825.  
  826.   Are you running the bus faster than 8Mhz?  If you can change the speed
  827.   (faster or slower), see if that makes a difference. Most NE2000 clones
  828.   will run at 16MHz, but some may not. Changing speed can also mask a
  829.   noisy bus.
  830.  
  831.   What other devices are on the bus?  If moving the devices around
  832.   changes the reliability, then you have a bus noise problem -- just
  833.   what that error message was designed to detect. Congratulations,
  834.   you've probably found the source of other problems as well.
  835.  
  836.   Problem: The machine hangs during boot right after the `8390...'  or
  837.   `WD....' message. Removing the NE2000 fixes the problem.
  838.  
  839.   Solution: Change your NE2000 base address to something like 0x340.
  840.   Alternatively, you can use the ``reserve='' boot argument in
  841.   conjunction with the ``ether='' argument to protect the card from
  842.   other device driver probes.
  843.  
  844.   Reason: Your NE2000 clone isn't a good enough clone. An active NE2000
  845.   is a bottomless pit that will trap any driver autoprobing in its
  846.   space.  Changing the NE2000 to a less-popular address will move it out
  847.   of the way of other autoprobes, allowing your machine to boot.
  848.  
  849.   Problem: The machine hangs during the SCSI probe at boot.
  850.  
  851.   Reason: It's the same problem as above, change the ethercard's
  852.   address, or use the reserve/ether boot arguments.
  853.  
  854.   Problem: The machine hangs during the soundcard probe at boot.
  855.  
  856.   Reason: No, that's really during the silent SCSI probe, and it's the
  857.   same problem as above.
  858.  
  859.   Problem: NE2000 not detected at boot - no boot messages at all
  860.  
  861.   Solution: There is no `magic solution' as there can be a number of
  862.   reasons why it wasn't detected. The following list should help you
  863.   walk through the possible problems.
  864.  
  865.   1) Build a new kernel with only the device drivers that you need.
  866.   Verify that you are indeed booting the fresh kernel. Forgetting to run
  867.   lilo, etc. can result in booting the old one. (Look closely at the
  868.   build time/date reported at boot.) Sounds obvious, but we have all
  869.   done it before. Make sure the driver is in fact included in the new
  870.   kernel, by checking the System.map file for names like ne_probe.
  871.  
  872.   2) Look at the boot messages carefully. Does it ever even mention
  873.   doing a ne2k probe such as `NE*000 probe at 0xNNN: not found (blah
  874.   blah)' or does it just fail silently. There is a big difference.  Use
  875.   dmesg|more to review the boot messages after logging in, or hit Shift-
  876.   PgUp to scroll the screen up after the boot has completed and the
  877.   login prompt appears.
  878.  
  879.   3) After booting, do a cat /proc/ioports and verify that the full
  880.   iospace that the card will require is vacant. If you are at 0x300 then
  881.   the ne2k driver will ask for 0x300-0x31f. If any other device driver
  882.   has registered even one port anywhere in that range, the probe will
  883.   not take place at that address and will silently continue to the next
  884.   of the probed addresses. A common case is having the lp driver reserve
  885.   0x378 or the second IDE channel reserve 0x376 which stops the ne
  886.   driver from probing 0x360-0x380.
  887.  
  888.   4) Same as above for cat /proc/interrupts. Make sure no other device
  889.   has registered the interrupt that you set the ethercard for. In this
  890.   case, the probe will happen, and the ether driver will complain loudly
  891.   at boot about not being able to get the desired IRQ line.
  892.  
  893.   5) If you are still stumped by the silent failure of the driver, then
  894.   edit it and add some printk() to the probe. For example, with the ne2k
  895.   you could add/remove lines (marked with a `+' or `-') in net/ne.c
  896.   like:
  897.  
  898.   ______________________________________________________________________
  899.       int reg0 = inb_p(ioaddr);
  900.  
  901.   +    printk("NE2k probe - now checking %x\n",ioaddr);
  902.   -    if (reg0 == 0xFF)
  903.   +    if (reg0 == 0xFF) {
  904.   +       printk("NE2k probe - got 0xFF (vacant i/o port)\n");
  905.           return ENODEV;
  906.   +    }
  907.   ______________________________________________________________________
  908.  
  909.   Then it will output messages for each port address that it checks, and
  910.   you will see if your card's address is being probed or not.
  911.  
  912.   6) You can also get the ne2k diagnostic from Don's ftp site (mentioned
  913.   in the howto as well) and see if it is able to detect your card after
  914.   you have booted into linux. Use the `-p 0xNNN' option to tell it where
  915.   to look for the card. (The default is 0x300 and it doesn't go looking
  916.   elsewhere, unlike the boot-time probe.)  The output from when it finds
  917.   a card will look something like:
  918.  
  919.   ______________________________________________________________________
  920.   Checking the ethercard at 0x300.
  921.     Register 0x0d (0x30d) is 00
  922.     Passed initial NE2000 probe, value 00.
  923.   8390 registers: 0a 00 00 00 63 00 00 00 01 00 30 01 00 00 00 00
  924.   SA PROM  0: 00 00 00 00 c0 c0 b0 b0 05 05 65 65 05 05 20 20
  925.   SA PROM 0x10: 00 00 07 07 0d 0d 01 01 14 14 02 02 57 57 57 57
  926.  
  927.           NE2000 found at 0x300, using start page 0x40 and end page 0x80.
  928.   ______________________________________________________________________
  929.  
  930.   Your register values and PROM values will probably be different.  Note
  931.   that all the PROM values are doubled for a 16 bit card, and that the
  932.   ethernet address (00:00:c0:b0:05:65) appears in the first row, and the
  933.   double 0x57 signature appears at the end of the PROM.
  934.  
  935.   The output from when there is no card installed at 0x300 will look
  936.   something like this:
  937.  
  938.   ______________________________________________________________________
  939.   Checking the ethercard at 0x300.
  940.     Register 0x0d (0x30d) is ff
  941.     Failed initial NE2000 probe, value ff.
  942.   8390 registers: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  943.   SA PROM        0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  944.   SA PROM 0x10: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
  945.  
  946.    Invalid signature found, wordlength 2.
  947.   ______________________________________________________________________
  948.  
  949.   The 0xff values  arise because that is the value that is returned when
  950.   one reads a vacant i/o port. If you happen to have some other hardware
  951.   in the region that is probed, you may see some non 0xff values as
  952.   well.
  953.  
  954.   7) Try warm booting into linux from a DOS boot floppy (via loadlin)
  955.   after running the supplied DOS driver or config program. It may be
  956.   doing some extra (i.e. non-standard) "magic" to initialize the card.
  957.  
  958.   8) Try Russ Nelson's ne2000.com packet driver to see if even it can
  959.   see your card -- if not, then things do not look good. Example:
  960.  
  961.        A:> ne2000 0x60 10 0x300
  962.  
  963.   The arguments are software interrupt vector, hardware IRQ, and  i/o
  964.   base.  You can get it from any msdos archive in pktdrv11.zip -- The
  965.   current version may be newer than 11.
  966.  
  967.   3.5.  Problems with SMC Ultra/EtherEZ and WD80*3 cards
  968.  
  969.   Problem: You get messages such as the following:
  970.  
  971.           eth0: bogus packet size: 65531, status=0xff, nxpg=0xff
  972.  
  973.   Reason: There is a shared memory problem.
  974.  
  975.   Solution: The most common reason for this is PCI machines that are not
  976.   configured to map in ISA memory devices. Hence you end up reading the
  977.   PC's RAM (all 0xff values) instead of the RAM on the card that
  978.   contains the data from the received packet.
  979.  
  980.   Other typical problems that are easy to fix are board conflicts,
  981.   having cache or `shadow ROM' enabled for that region, or running your
  982.   ISA bus faster than 8Mhz. There are also a surprising number of memory
  983.   failures on ethernet cards, so run a diagnostic program if you have
  984.   one for your ethercard.
  985.  
  986.   Problem: SMC EtherEZ doesn't work in non-shared memory (PIO) mode.
  987.  
  988.   Reason: Older versions of the Ultra driver only supported the card in
  989.   the shared memory mode of operation.
  990.  
  991.   Solution: The driver in kernel version 2.0 and above also supports the
  992.   programmed i/o mode of operation. Upgrade to v2.0, or get the drop-in
  993.   replacement for kernel v1.2.13 from Donald's ftp/www site.
  994.  
  995.   Problem: Old wd8003 and/or jumper-settable wd8013 always get the IRQ
  996.   wrong.
  997.  
  998.   Reason: The old wd8003 cards and jumper-settable wd8013 clones don't
  999.   have the EEPROM that the driver can read the IRQ setting from.  If the
  1000.   driver can't read the IRQ, then it tries to auto-IRQ to find out what
  1001.   it is. And if auto-IRQ returns zero, then the driver just assigns IRQ
  1002.   5 for an 8 bit card or IRQ 10 for a 16 bit card.
  1003.  
  1004.   Solution: Avoid the auto-IRQ code, and tell the kernel what the IRQ
  1005.   that you have jumpered the card to is via a boot time argument.  For
  1006.   example, if you are using IRQ 9, using the following should work.
  1007.  
  1008.        LILO: linux ether=9,0,eth0
  1009.  
  1010.   Problem: SMC Ultra card is detected as wd8013, but the IRQ and shared
  1011.   memory base is wrong.
  1012.  
  1013.   Reason: The Ultra card looks a lot like a wd8013, and if the Ultra
  1014.   driver is not present in the kernel, the wd driver may mistake the
  1015.   ultra as a wd8013. The ultra probe comes before the wd probe, so this
  1016.   usually shouldn't happen. The ultra stores the IRQ and mem base in the
  1017.   EEPROM differently than a wd8013, hence the bogus values reported.
  1018.  
  1019.   Solution: Recompile with only the drivers you need in the kernel. If
  1020.   you have a mix of wd and ultra cards in one machine, and are using
  1021.   modules, then load the ultra module first.
  1022.  
  1023.   3.6.  Problems with 3Com cards
  1024.  
  1025.   Problem: The 3c503 picks IRQ N, but this is needed for some other
  1026.   device which needs IRQ N. (eg. CD ROM driver, modem, etc.)  Can this
  1027.   be fixed without compiling this into the kernel?
  1028.  
  1029.   Solution: The 3c503 driver probes for a free IRQ line in the order {5,
  1030.   9/2, 3, 4}, and it should pick a line which isn't being used. The
  1031.   driver chooses when the card is ifconfig'ed into operation.
  1032.  
  1033.   If you are using a modular driver, you can use module parameters to
  1034.   set various things, including the IRQ value.
  1035.  
  1036.   The following selects IRQ9, base location 0x300, <ignored value>, and
  1037.   if_port #1 (the external transceiver).
  1038.  
  1039.        io=0x300 irq=9 xcvr=1
  1040.  
  1041.   Alternately, if the driver is compiled into the kernel, you can set
  1042.   the same values at boot by passing parameters via LILO.
  1043.  
  1044.        LILO: linux ether=9,0x300,0,1,eth0
  1045.  
  1046.   The following selects IRQ3, probes for the base location, <ignored
  1047.   value>, and the default if_port #0 (the internal transceiver)
  1048.  
  1049.        LILO: linux ether=3,0,0,0,eth0
  1050.  
  1051.   Problem: 3c503: configured interrupt X invalid, will use autoIRQ.
  1052.  
  1053.   Reason: The 3c503 card can only use one of IRQ{5, 2/9, 3, 4} (These
  1054.   are the only lines that are connected to the card.)  If you pass in an
  1055.   IRQ value that is not in the above set, you will get the above
  1056.   message.  Usually, specifying an interrupt value for the 3c503 is not
  1057.   necessary. The 3c503 will autoIRQ when it gets ifconfig'ed, and pick
  1058.   one of IRQ{5, 2/9, 3, 4}.
  1059.  
  1060.   Solution: Use one of the valid IRQs listed above, or enable autoIRQ by
  1061.   not specifying the IRQ line at all.
  1062.  
  1063.   Problem: The supplied 3c503 drivers don't use the AUI (thicknet) port.
  1064.   How does one choose it over the default thinnet port?
  1065.  
  1066.   Solution: The 3c503 AUI port can be selected at boot-time for in-
  1067.   kernel drivers, and at module insertion for modular drivers.  The
  1068.   selection is overloaded onto the low bit of the currently-unused
  1069.   dev->rmem_start variable, so a boot-time parameter of:
  1070.  
  1071.        LILO: linux ether=0,0,0,1,eth0
  1072.  
  1073.   should work for in-kernel drivers.
  1074.  
  1075.   To specify the AUI port when loading as a module, just append xcvr=1
  1076.   to the module options line along with your i/o and irq values.
  1077.  
  1078.   3.7.  FAQs Not Specific to Any Card.
  1079.  
  1080.   3.7.1.  Ethercard is Not Detected at Boot.
  1081.  
  1082.   The usual reason for this is that people are using a kernel that does
  1083.   not have support for their particular card built in. For a modular
  1084.   kernel, it usually means that the required module has not been
  1085.   requested for loading, or that an I/O address needs to be specified as
  1086.   a module option.
  1087.  
  1088.   If you are using a modular based kernel, such as those installed by
  1089.   most of the linux distributions, then try and use the configuration
  1090.   utility for the distribution to select the module for your card. For
  1091.   ISA cards, it is a good idea to determine the I/O address of the card
  1092.   and add it as an option (e.g. io=0x340) if the configuration utility
  1093.   asks for any options. If there is no configuration utility, then you
  1094.   will have to add the correct module name  (and options) to
  1095.   /etc/conf.modules -- see man modprobe for more details.
  1096.  
  1097.   If you are using a pre-compiled kernel that is part of a distribution
  1098.   set, then check the documentation to see which kernel you installed,
  1099.   and if it was built with support for your particular card. If it
  1100.   wasn't, then your options are to try and get one that has support for
  1101.   your card, or build your own.
  1102.  
  1103.   It is usually wise to build your own kernel with only the drivers you
  1104.   need, as this cuts down on the kernel size (saving your precious RAM
  1105.   for applications!) and reduces the number of device probes that can
  1106.   upset sensitive hardware. Building a kernel is not as complicated as
  1107.   it sounds. You just have to answer yes or no to a bunch of questions
  1108.   about what drivers you want, and it does the rest.
  1109.  
  1110.   The next main cause is having another device using part of the i/o
  1111.   space that your card needs. Most cards are 16 or 32 bytes wide in i/o
  1112.   space. If your card is set at 0x300 and 32 bytes wide, then the driver
  1113.   will ask for 0x300-0x31f. If any other device driver has registered
  1114.   even one port anywhere in that range, the probe will not take place at
  1115.   that address and  the driver will silently continue to the next of the
  1116.   probed addresses. So, after booting, do a cat /proc/ioports and verify
  1117.   that the full iospace that the card will require is vacant.
  1118.  
  1119.   Another problem is having your card jumpered to an i/o address that
  1120.   isn't probed by default. There is a list ``probed addresses'' for each
  1121.   card in this document. Even if the i/o setting of your card is not in
  1122.   the list of porbed addresses, you can supply it at boot (for in-kernel
  1123.   drivers) with the ether= command as described in ``Passing Ethernet
  1124.   Arguments...''  Modular drivers can make use of the io= option to
  1125.   specify an address that isn't probed by default.
  1126.  
  1127.   3.7.2.  ifconfig reports the wrong i/o address for the card.
  1128.  
  1129.   No it doesn't. You are just interpreting it incorrectly.  This is not
  1130.   a bug, and the numbers reported are correct. It just happens that some
  1131.   8390 based cards (wd80x3, smc-ultra, etc) have the actual 8390 chip
  1132.   living at an offset from the first assigned i/o port.  This is the
  1133.   value stored in dev->base_addr, and is what ifconfig reports. If you
  1134.   want to see the full range of ports that your card uses, then try cat
  1135.   /proc/ioports which will give the numbers you expect.
  1136.  
  1137.   3.7.3.  PCI machine detects card but driver fails probe.
  1138.  
  1139.   Newer PCI BIOSes may not enable all PCI cards at power-up, especially
  1140.   if the BIOS option `PNP OS' is enabled. This mis-feature is to support
  1141.   the next release of Windows which still uses some real-mode drivers.
  1142.   Either disable this option, or try and upgrade to a newer driver which
  1143.   has the code to enable a disabled card.
  1144.  
  1145.   3.7.4.  Shared Memory ISA cards in PCI Machine dont work (0xffff)
  1146.  
  1147.   This will usually show up as reads of lots of 0xffff values.  No
  1148.   shared memory cards of any type will work in a PCI machine unless you
  1149.   have the PCI ROM BIOS/CMOS SETUP configuration set properly. You have
  1150.   to set it to allow shared memory access from the ISA bus for the
  1151.   memory region that your card is trying to use. If you can't figure out
  1152.   which settings are applicable then ask your supplier or local computer
  1153.   guru. For AMI BIOS, there is usually a "Plug and Play" section where
  1154.   there will be an ``ISA Shared Memory Size'' and ``ISA Shared Memory
  1155.   Base'' settings. For cards like the wd8013 and SMC Ultra, change the
  1156.   size from the default of `Disabled' to 16kB, and change the base to
  1157.   the shared memory address of your card.
  1158.  
  1159.   3.7.5.  NexGen machine gets `mismatched read page pointers' errors.
  1160.  
  1161.   A quirk of the NexGen CPU caused all users with 8390 based cards
  1162.   (wd80x3, 3c503, SMC Ultra/EtherEZ, ne2000, etc.) to get these error
  1163.   messages. Kernel versions 2.0 and above do not have these problems.
  1164.   Upgrade your kernel.
  1165.  
  1166.   3.7.6.  Asynchronous Transfer Mode (ATM) Support
  1167.  
  1168.   Werner Almesberger has been working on ATM support for linux.  He has
  1169.   been working with the Efficient Networks ENI155p board (Efficient
  1170.   Networks <http://www.efficient.com/>) and the Zeitnet ZN1221 board
  1171.   (Zeitnet <http://www.zeitnet.com/>).
  1172.  
  1173.   Werner says that the driver for the ENI155p is rather stable, while
  1174.   the driver for the ZN1221 is presently unfinished.
  1175.  
  1176.   Check the latest/updated status at the following URL:
  1177.  
  1178.   Linux ATM Support <http://lrcwww.epfl.ch/linux-atm/>
  1179.  
  1180.   3.7.7.  Gigabyte Ethernet Support
  1181.  
  1182.   Is there any gigabyte ethernet support for Linux?
  1183.  
  1184.   A driver for the Packet Engines G-NIC PCI Gigabit Ethernet adapter is
  1185.   due to be added into the upcoming release of kernel v2.0.34.  For more
  1186.   details, support, and driver updates, see:
  1187.  
  1188.   http://cesdis.gsfc.nasa.gov/linux/drivers/yellowfin.html
  1189.  
  1190.   3.7.8.  FDDI Support
  1191.  
  1192.   Is there FDDI support for Linux?
  1193.  
  1194.   Yes. Larry Stefani has written a driver for v2.0 with Digital's DEFEA
  1195.   (FDDI EISA) and DEFPA (FDDI PCI) cards.  This was included into the
  1196.   v2.0.24 kernel.  Currently no other cards are supported though.
  1197.  
  1198.   3.7.9.  Full Duplex Support
  1199.  
  1200.   Will Full Duplex give me 20MBps? Does Linux support it?
  1201.  
  1202.   Cameron Spitzer writes the following about full duplex 10Base-T cards:
  1203.   ``If you connect it to a full duplex switched hub, and your system is
  1204.   fast enough and not doing much else, it can keep the link busy in both
  1205.   directions.  There is no such thing as full duplex 10BASE-2 or
  1206.   10BASE-5 (thin and thick coax).  Full Duplex works by disabling
  1207.   collision detection in the adapter.  That's why you can't do it with
  1208.   coax; the LAN won't run that way.  10BASE-T (RJ45 interface) uses
  1209.   separate wires for send and receive, so it's possible to run both ways
  1210.   at the same time.  The switching hub takes care of the collision
  1211.   problem.  The signalling rate is 10 Mbps.''
  1212.  
  1213.   So as you can see, you still will only be able to receive or transmit
  1214.   at 10Mbps, and hence don't expect a 2x performance increase. As to
  1215.   whether it is supported or not, that depends on the card and possibly
  1216.   the driver. Some cards may do auto-negotiation, some may need driver
  1217.   support, and some may need the user to select an option in a card's
  1218.   EEPROM configuration.  Only the serious/heavy user would notice the
  1219.   difference between the two modes anyway.
  1220.  
  1221.   3.7.10.  Ethernet Cards for Linux on Alpha/AXP PCI Boards
  1222.  
  1223.   As of v2.0, only the 3c509, depca, de4x5 lance32, and all the 8390
  1224.   drivers (wd, smc-ultra, ne, 3c503, etc.) have been made `architecture
  1225.   independent' so as to work on the DEC Alpha CPU based systems.
  1226.  
  1227.   Note that the changes that are required aren't that complicated.  You
  1228.   only need to do the following:
  1229.  
  1230.   -multiply all jiffies related values by HZ/100 to account for the
  1231.   different HZ value that the Alpha uses.  (i.e timeout=2; becomes
  1232.   timeout=2*HZ/100;)
  1233.  
  1234.   -replace any i/o memory (640k to 1MB) pointer dereferences with the
  1235.   appropriate readb() writeb() readl() writel() calls, as shown in this
  1236.   example.
  1237.  
  1238.   ______________________________________________________________________
  1239.   -       int *mem_base = (int *)dev->mem_start;
  1240.   -       mem_base[0] = 0xba5eba5e;
  1241.   +       unsigned long mem_base = dev->mem_start;
  1242.   +       writel(0xba5eba5e, mem_base);
  1243.   ______________________________________________________________________
  1244.  
  1245.   -replace all memcpy() calls that have i/o memory as source or target
  1246.   destinations with the appropriate one of memcpy_fromio() or
  1247.   memcpy_toio().
  1248.  
  1249.   Details on handling memory accesses in an architecture independent
  1250.   fashion are documented in the file linux/Documentation/IO-mapping.txt
  1251.   that comes with recent kernels.
  1252.  
  1253.   3.7.11.  Linking 10BaseT without a Hub
  1254.  
  1255.   Can I link 10BaseT (RJ45) based systems together without a hub?
  1256.  
  1257.   You can link 2 machines easily, but no more than that, without extra
  1258.   devices/gizmos. See ``Twisted Pair'' -- it explains how to do it. And
  1259.   no, you can't hack together a hub just by crossing a few wires and
  1260.   stuff. It's pretty much impossible to do the collision signal right
  1261.   without duplicating a hub.
  1262.  
  1263.   3.7.12.  SIOCSIFxxx: No such device
  1264.  
  1265.   I get a bunch of `SIOCSIFxxx: No such device' messages at boot,
  1266.   followed by a `SIOCADDRT: Network is unreachable' What is wrong?
  1267.  
  1268.   Your ethernet device was not detected at boot/module insertion time,
  1269.   and when ifconfig and route are run, they have no device to work with.
  1270.   Use dmesg | more to review the boot messages and see if there are any
  1271.   messages about detecting an ethernet card.
  1272.  
  1273.   3.7.13.  SIOCSFFLAGS: Try again
  1274.  
  1275.   I get `SIOCSFFLAGS: Try again' when I run `ifconfig' -- Huh?
  1276.  
  1277.   Some other device has taken the IRQ that your ethercard is trying to
  1278.   use, and so the ethercard can't use the IRQ.  You don't necessairly
  1279.   need to reboot to resolve this, as some devices only grab the IRQs
  1280.   when they need them and then release them when they are done. Examples
  1281.   are some sound cards, serial ports, floppy disk driver, etc. You can
  1282.   type cat /proc/interrupts to see which interrupts are presently in
  1283.   use. Most of the Linux ethercard drivers only grab the IRQ when they
  1284.   are opened for use via `ifconfig'. If you can get the other device to
  1285.   `let go' of the required IRQ line, then you should be able to `Try
  1286.   again' with ifconfig.
  1287.  
  1288.   3.7.14.  Using `ifconfig' and Link UNSPEC with HW-addr of
  1289.   00:00:00:00:00:00
  1290.  
  1291.   When I run ifconfig with no arguments, it reports that LINK is UNSPEC
  1292.   (instead of 10Mbs Ethernet) and it also says that my hardware address
  1293.   is all zeros.
  1294.  
  1295.   This is because people are running a newer version of the `ifconfig'
  1296.   program than their kernel version. This new version of ifconfig is not
  1297.   able to report these properties when used in conjunction with an older
  1298.   kernel. You can either upgrade your kernel, `downgrade' ifconfig, or
  1299.   simply ignore it. The kernel knows your hardware address, so it really
  1300.   doesn't matter if ifconfig can't read it.
  1301.  
  1302.   You may also get strange information if the ifconfig program you are
  1303.   using is a lot older than the kernel you are using.
  1304.  
  1305.   3.7.15.  Huge Number of RX and TX Errors
  1306.  
  1307.   When I run ifconfig with no arguments, it reports that I have a huge
  1308.   error count in both rec'd and transmitted packets. It all seems to
  1309.   work ok -- What is wrong?
  1310.  
  1311.   Look again. It says RX packets big number PAUSE errors 0 PAUSE dropped
  1312.   0 PAUSE overrun 0.  And the same for the TX column.  Hence the big
  1313.   numbers you are seeing are the total number of packets that your
  1314.   machine has rec'd and transmitted.  If you still find it confusing,
  1315.   try typing cat /proc/net/dev instead.
  1316.  
  1317.   3.7.16.  Entries in /dev/ for Ethercards
  1318.  
  1319.   I have /dev/eth0 as a link to /dev/xxx. Is this right?
  1320.  
  1321.   Contrary to what you have heard, the files in /dev/* are not used.
  1322.   You can delete any /dev/wd0, /dev/ne0 and similar entries.
  1323.  
  1324.   3.7.17.  Linux and ``trailers''
  1325.  
  1326.   Should I disable trailers when I `ifconfig' my ethercard?
  1327.  
  1328.   You can't disable trailers, and you shouldn't want to. `Trailers' are
  1329.   a hack to avoid data copying in the networking layers. The idea was to
  1330.   use a trivial fixed-size header of size `H', put the variable-size
  1331.   header info at the end of the packet, and allocate all packets `H'
  1332.   bytes before the start of a page. While it was a good idea, it turned
  1333.   out to not work well in practice.  If someone suggests the use of
  1334.   `-trailers', note that it is the equivalent of sacrificial goats
  1335.   blood. It won't do anything to solve the problem, but if problem fixes
  1336.   itself then someone can claim deep magical knowledge.
  1337.  
  1338.   3.7.18.  Access to the raw Ethernet Device
  1339.  
  1340.   How do I get access to the raw ethernet device in linux, without going
  1341.   through TCP/IP and friends?
  1342.  
  1343.   ______________________________________________________________________
  1344.           int s=socket(AF_INET,SOCK_PACKET,htons(ETH_P_ALL));
  1345.   ______________________________________________________________________
  1346.  
  1347.   This gives you a socket receiving every protocol type.  Do recvfrom()
  1348.   calls to it and it will fill the sockaddr with device type in
  1349.   sa_family and the device name in the sa_data array. I don't know who
  1350.   originally invented SOCK_PACKET for Linux (its been in for ages) but
  1351.   its superb stuff.  You can use it to send stuff raw too via sendto()
  1352.   calls.  You have to have root access to do either of course.
  1353.  
  1354.   4.  Performance Tips
  1355.  
  1356.   Here are some tips that you can use if you are suffering from low
  1357.   ethernet throughput, or to gain a bit more speed on those ftp
  1358.   transfers.
  1359.  
  1360.   The ttcp.c program is a good test for measuring raw throughput speed.
  1361.   Another common trick is to do a ftp> get large_file /dev/null where
  1362.   large_file is > 1MB and residing in the buffer cache on the Tx'ing
  1363.   machine. (Do the `get' at least twice, as the first time will be
  1364.   priming the buffer cache on the Tx'ing machine.) You want the file in
  1365.   the buffer cache because you are not interested in combining the file
  1366.   access speed from the disk into your measurement. Which is also why
  1367.   you send the incoming data to /dev/null instead of onto the disk.
  1368.  
  1369.   4.1.  General Concepts
  1370.  
  1371.   Even an 8 bit card is able to receive back-to-back packets without any
  1372.   problems. The difficulty arises when the computer doesn't get the Rx'd
  1373.   packets off the card quick enough to make room for more incoming
  1374.   packets. If the computer does not quickly clear the card's memory of
  1375.   the packets already received, the card will have no place to put the
  1376.   new packet.
  1377.  
  1378.   In this case the card either drops the new packet, or writes over top
  1379.   of a previously received packet. Either one seriously interrupts the
  1380.   smooth flow of traffic by causing/requesting re-transmissions and can
  1381.   seriously degrade performance by up to a factor of 5!
  1382.  
  1383.   Cards with more onboard memory are able to ``buffer'' more packets,
  1384.   and thus can handle larger bursts of back-to-back packets without
  1385.   dropping packets.  This in turn means that the card does not require
  1386.   as low a latency from the the host computer with respect to pulling
  1387.   the packets out of the buffer to avoid dropping packets.
  1388.  
  1389.   Most 8 bit cards have an 8kB buffer, and most 16 bit cards have a 16kB
  1390.   buffer. Most Linux drivers will reserve 3kB of that buffer (for two Tx
  1391.   buffers), leaving only 5kB of receive space for an 8 bit card. This is
  1392.   room enough for only three full sized (1500 bytes) ethernet packets.
  1393.  
  1394.   4.2.  ISA Bus Speed
  1395.  
  1396.   As mentioned above, if the packets are removed from the card fast
  1397.   enough, then a drop/overrun condition won't occur even when the amount
  1398.   of Rx packet buffer memory is small. The factor that sets the rate at
  1399.   which packets are removed from the card to the computer's memory is
  1400.   the speed of the data path that joins the two -- that being the ISA
  1401.   bus speed. (If the CPU is a dog-slow 386sx-16, then this will also
  1402.   play a role.)
  1403.  
  1404.   The recommended ISA bus clock is about 8MHz, but many motherboards and
  1405.   peripheral devices can be run at higher frequencies. The clock
  1406.   frequency for the ISA bus can usually be set in the CMOS setup, by
  1407.   selecting a divisor of the mainboard/CPU clock frequency.
  1408.  
  1409.   For example, here are some receive speeds as measured by the TTCP
  1410.   program on a 40MHz 486, with an  8 bit WD8003EP card, for different
  1411.   ISA bus speeds.
  1412.  
  1413.   ______________________________________________________________________
  1414.           ISA Bus Speed (MHz)     Rx TTCP (kB/s)
  1415.           -------------------     --------------
  1416.           6.7                     740
  1417.           13.4                    970
  1418.           20.0                    1030
  1419.           26.7                    1075
  1420.   ______________________________________________________________________
  1421.  
  1422.   You would be hard pressed to do better than 1075kB/s with any 10Mb/s
  1423.   ethernet card, using TCP/IP. However, don't expect every system to
  1424.   work at fast ISA bus speeds. Most systems will not function properly
  1425.   at speeds above 13MHz. (Also, some PCI systems have the ISA bus speed
  1426.   fixed at 8MHz, so that the end user does not have the option of
  1427.   increasing it.)
  1428.  
  1429.   In addition to faster transfer speeds, one will usually also benefit
  1430.   from a reduction in CPU usage due to the shorter duration memory and
  1431.   i/o cycles. (Note that hard disks and video cards located on the ISA
  1432.   bus will also usually experience a performance increase from an
  1433.   increased ISA bus speed.)
  1434.  
  1435.   Be sure to back up your data prior to experimenting with ISA bus
  1436.   speeds in excess of 8MHz, and thouroughly test that all ISA
  1437.   peripherals are operating properly after making any speed increases.
  1438.  
  1439.   4.3.  Setting the TCP Rx Window
  1440.  
  1441.   Once again, cards with small amounts of onboard RAM and relatively
  1442.   slow data paths between the card and the computer's memory run into
  1443.   trouble. The default TCP Rx window setting is 32kB, which means that a
  1444.   fast computer on the same subnet as you can dump 32k of data on you
  1445.   without stopping to see if you received any of it okay.
  1446.  
  1447.   Recent versions of the route command have the ability to set the size
  1448.   of this window on the fly. Usually it is only for the local net that
  1449.   this window must be reduced, as computers that are behind a couple of
  1450.   routers or gateways are `buffered' enough to not pose a problem. An
  1451.   example usage would be:
  1452.  
  1453.   ______________________________________________________________________
  1454.           route add <whatever> ... window <win_size>
  1455.   ______________________________________________________________________
  1456.  
  1457.   where win_size is the size of the window you wish to use (in bytes).
  1458.   An 8 bit 3c503 card on an ISA bus operating at a speed of 8MHz or less
  1459.   would work well with a window size of about 4kB. Too large a window
  1460.   will cause overruns and dropped packets, and a drastic reduction in
  1461.   ethernet throughput. You can check the operating status by doing a cat
  1462.   /proc/net/dev which will display any dropped or overrun conditions
  1463.   that occurred.
  1464.  
  1465.   4.4.  Increasing NFS performance
  1466.  
  1467.   Some people have found that using 8 bit cards in NFS clients causes
  1468.   poorer than expected performance, when using 8kB (native Sun) NFS
  1469.   packet size.
  1470.  
  1471.   The possible reason for this could be due to the difference in on
  1472.   board buffer size between the 8 bit and the 16 bit cards.  The maximum
  1473.   ethernet packet size is about 1500 bytes. Now that 8kB NFS packet will
  1474.   arrive as about 6 back to back maximum size ethernet packets. Both the
  1475.   8 and 16 bit cards have no problem Rx'ing back to back packets. The
  1476.   problem arises when the machine doesn't remove the packets from the
  1477.   cards buffer in time, and the buffer overflows. The fact that 8 bit
  1478.   cards take an extra ISA bus cycle per transfer doesn't help either.
  1479.   What you can do if you have an 8 bit card is either set the NFS
  1480.   transfer size to 2kB (or even 1kB), or try increasing the ISA bus
  1481.   speed in order to get the card's buffer cleared out faster.  I have
  1482.   found that an old WD8003E card at 8MHz (with no other system load) can
  1483.   keep up with a large receive at 2kB NFS size, but not at 4kB, where
  1484.   performance was degraded by a factor of three.
  1485.  
  1486.   5.  Vendor/Manufacturer/Model Specific Information
  1487.  
  1488.   The following lists many cards in alphabetical order by vendor name
  1489.   and then product identifier. Beside each product ID, you will see
  1490.   either `Supported', `Semi-Supported' or `Not Supported'.
  1491.  
  1492.   Supported means that a driver for that card exists, and many people
  1493.   are happily using it and it seems quite reliable.
  1494.  
  1495.   Semi-Supported means that a driver exists, but at least one of the
  1496.   following descriptions is true: (1) The driver and/or hardware are
  1497.   buggy, which may cause poor performance, failing connections or even
  1498.   crashes.  (2) The driver is new or the card is fairly uncommon, and
  1499.   hence the driver has seen very little use/testing and the driver
  1500.   author has had very little feedback. Obviously (2) is preferable to
  1501.   (1), and the individual description of the card/driver should make it
  1502.   clear which one holds true. In either case, you will probably have to
  1503.   answer `Y' when asked ``Prompt for development and/or incomplete
  1504.   code/drivers?'' when running make config.
  1505.  
  1506.   Not Supported means there is not a driver currently available for that
  1507.   card. This could be due to a lack of interest in hardware that is
  1508.   rare/uncommon, or because the vendors won't release the hardware
  1509.   documentation required to write a driver.
  1510.  
  1511.   Note that the difference between `Supported' and `Semi-Supported' is
  1512.   rather subjective, and is based on user feedback observed in newsgroup
  1513.   postings and mailing list messages. (After all, it is impossible for
  1514.   one person to test all drivers with all cards for each kernel
  1515.   version!!!) So be warned that you may find a card listed as semi-
  1516.   supported works perfectly for you (which is great), or that a card
  1517.   listed as supported gives you no end of troubles and problems (which
  1518.   is not so great).
  1519.  
  1520.   5.1.  3Com
  1521.  
  1522.   If you are not sure what your card is, but you think it is a 3Com
  1523.   card, you can probably figure it out from the assembly number. 3Com
  1524.   has a document `Identifying 3Com Adapters By Assembly Number' (ref
  1525.   24500002) that would most likely clear things up. See ``Technical
  1526.   Information from 3Com'' for info on how to get documents from 3Com.
  1527.  
  1528.   Also note that 3Com has a FTP site with various goodies: ftp.3Com.com
  1529.   that you may want to check out.
  1530.  
  1531.   For those of you browsing this document by a WWW browser, you can try
  1532.   3Com's WWW site as well.
  1533.  
  1534.   5.1.1.  3c501
  1535.  
  1536.   Status -- Semi-Supported
  1537.  
  1538.   Too brain-damaged to use. Available surplus from many places. Avoid it
  1539.   like the plague. Again, do not purchase this card, even as a joke.
  1540.   It's performance is horrible, and it breaks in many ways.
  1541.  
  1542.   For those not yet convinced, the 3c501 can only do one thing at a time
  1543.   -- while you are removing one packet from the single-packet buffer it
  1544.   cannot receive another packet, nor can it receive a packet while
  1545.   loading a transmit packet. This was fine for a network between two
  1546.   8088-based computers where processing each packet and replying took
  1547.   10's of msecs, but modern networks send back-to-back packets for
  1548.   almost every transaction.
  1549.  
  1550.   AutoIRQ works, DMA isn't used, the autoprobe only looks at 0x280 and
  1551.   0x300, and the debug level is set with the third boot-time argument.
  1552.  
  1553.   Once again, the use of a 3c501 is strongly discouraged!  Even more so
  1554.   with a IP multicast kernel, as you will grind to a halt while
  1555.   listening to all multicast packets. See the comments at the top of the
  1556.   source code for more details.
  1557.  
  1558.   5.1.2.  3c503, 3c503/16
  1559.  
  1560.   Status -- Supported
  1561.  
  1562.   If you have a 3c503/16 you may be interested to know that as of 1.3.37
  1563.   the driver has the facility to use the full 16kB RAM on your card.
  1564.   Previous versions treated the 16bit cards as 8bit cards, and only used
  1565.   half of the available RAM. This update also detects the newer 3Com
  1566.   prefix found on newly manufactured cards mentioned below.
  1567.  
  1568.   Recently made 3c503/16 cards have a new base hardware address because
  1569.   3Com ran out of numbers (they made too many cards!) The cards used to
  1570.   start with 02 60 8C and the newer ones use 00 20 AF. Up to 1.3.37, the
  1571.   driver will only check for the old address, and skip over the newer
  1572.   cards.  You can upgrade to a kernel newer than 1.3.37, or change the
  1573.   numbers in 3c503.c for older kernels.
  1574.  
  1575.   These cards should be about the same speed as the same bus width
  1576.   WD80x3, but turn out to be actually a bit slower.  The 3c503 does not
  1577.   have ``EEPROM setup'', so a diagnostic/setup program isn't needed
  1578.   before running the card with Linux. The shared memory address of the
  1579.   3c503 is set using jumpers that are shared with the boot PROM address.
  1580.   This is confusing to people familiar with other ISA cards, where you
  1581.   always leave the jumper set to ``disable'' unless you have a boot
  1582.   PROM.
  1583.  
  1584.   These shared-memory ethercards also have a programmed I/O mode that
  1585.   doesn't use the 8390 facilities (their engineers found too many bugs!)
  1586.   The Linux 3c503 driver can also work with the 3c503 in programmed-I/O
  1587.   mode, but this is slower and less reliable than shared memory mode.
  1588.   Also, programmed-I/O mode is not as well tested when updating the
  1589.   drivers.  You shouldn't use the programmed-I/O mode unless you need it
  1590.   for MS-DOS compatibility.
  1591.  
  1592.   The 3c503's IRQ line is set in software, with no hints from an EEPROM.
  1593.   Unlike the MS-DOS drivers, the Linux driver has capability to autoIRQ:
  1594.   it uses the first available IRQ line in {5,2/9,3,4}, selected each
  1595.   time the card is ifconfig'ed. (Older driver versions selected the IRQ
  1596.   at boot time.) The ioctl() call in `ifconfig' will return EAGAIN if no
  1597.   IRQ line is available at that time.
  1598.  
  1599.   Some common problems that people have with the 503 are discussed in
  1600.   ``Problems with...''.
  1601.  
  1602.   If you intend on using this driver as a loadable module you should
  1603.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  1604.   Based Cards as Modules'' for module specific information.
  1605.  
  1606.   5.1.3.  3c505
  1607.  
  1608.   Status -- Semi-Supported
  1609.  
  1610.   This is a driver that was written by Craig Southeren
  1611.   geoffw@extro.ucc.su.oz.au. These cards also use the i82586 chip.
  1612.   There are not that many of these cards about.  It is included in the
  1613.   standard kernel, but it is classed as an alpha driver. See ``Alpha
  1614.   Drivers'' for important information on using alpha-test ethernet
  1615.   drivers with Linux.
  1616.  
  1617.   There is also the file /usr/src/linux/drivers/net/README.3c505 that
  1618.   you should read if you are going to use one of these cards.  It
  1619.   contains various options that you can enable/disable.  Technical
  1620.   information is available in ``Programming the Intel chips''.
  1621.  
  1622.   5.1.4.  3c507
  1623.  
  1624.   Status -- Semi-Supported
  1625.  
  1626.   This card uses one of the Intel chips, and the development of the
  1627.   driver is closely related to the development of the Intel Ether
  1628.   Express driver.  The driver is included in the standard kernel
  1629.   release, but as an alpha driver.
  1630.  
  1631.   See ``Alpha Drivers'' for important information on using alpha-test
  1632.   ethernet drivers with Linux. Technical information is available in
  1633.   ``Programming the Intel chips''.
  1634.  
  1635.   5.1.5.  3c509 / 3c509B
  1636.  
  1637.   Status -- Supported
  1638.  
  1639.   This card is fairly inexpensive and has good performance for a non-
  1640.   bus-master design.  The drawbacks are that the original 3c509 requires
  1641.   very low interrupt latency. The 3c509B shouldn't suffer from the same
  1642.   problem, due to having a larger buffer. (See below.) These cards use
  1643.   PIO transfers, similar to a ne2000 card, and so a shared memory card
  1644.   such as a wd8013 will be more efficient in comparison.
  1645.  
  1646.   The original 3c509 has a small packet buffer (4kB total, 2kB Rx, 2kB
  1647.   Tx), causing the driver to occasionally drop a packet if interrupts
  1648.   are masked for too long. To minimize this problem, you can try
  1649.   unmasking interrupts during IDE disk transfers (see man hdparm) and/or
  1650.   increasing your ISA bus speed so IDE transfers finish sooner.
  1651.  
  1652.   The newer model 3c509B has 8kB on board, and the buffer can be split
  1653.   4/4, 5/3 or 6/2 for Rx/Tx. This setting is changed with the DOS
  1654.   configuration utility, and is stored on the EEPROM. This should
  1655.   alleviate the above problem with the original 3c509.
  1656.  
  1657.   3c509B users should use the supplied DOS utility to disable the plug
  1658.   and play support, and to set the output media to what they require.
  1659.   The linux driver currently does not support the Autodetect media
  1660.   setting, so you have to select 10Base-T or 10Base-2 or AUI.  With
  1661.   regards to the media detection features, Cameron said: ``Autoselect is
  1662.   a feature of the commercial drivers for 3C509(B).  AFAIK nobody ever
  1663.   claimed the Linux driver attempts it.  When drivers/net/3c509.c
  1664.   recognizes my 3C509B at boot time, it says: eth0: 3c509 at 0x300 tag
  1665.   1, 10baseT port, ...  revealing that the card is configured for
  1666.   10BASE-T.  It finds that out by reading the little EEPROM, which IMHO
  1667.   is the Right Way To Do It.''
  1668.  
  1669.   As for the plug-and-pray stuff, Cameron adds: ``The 3C509B has 3Com's
  1670.   relocatable I/O port scheme, and Microsofttm Plug-and-play ("PnP").
  1671.   You can't use them both at the same time.  Some (broken, IMHO) BIOSes
  1672.   begin a PnP sequence by writing to the PnP address (0x279 ?), which
  1673.   causes PnP adapters like 3C509B to enter the PnP state, but then they
  1674.   (these funny BIOSes) never come back to finish the job.  The 3C509Bs
  1675.   hang there in the middle of the PnP ID Sequence, where they have no
  1676.   idea you didn't mean it and you're going to use the 3Com ID sequence
  1677.   after all.  3C5X9CFG /PNPRST clears this hang.  Disable PnP if your
  1678.   drivers (eg., Linux) don't use it.
  1679.  
  1680.   It was a marketing decision to turn PnP on as a factory default
  1681.   setting.  If it caused you a hassle, or not, please take the time to
  1682.   say so when you mail in your warranty card.  The more info they have,
  1683.   the better decisions they can make.  Also, check with your motherboard
  1684.   supplier to see if you need a BIOS upgrade.''
  1685.  
  1686.   It has been reported that you have to do a hard reset after doing the
  1687.   `3C5X9CFG /PNPRST' for the change to take effect.
  1688.  
  1689.   Some people ask about the ``Server or Workstation'' and ``Highest
  1690.   Modem Speed'' settings presented in the DOS configuration utility.
  1691.   Donald writes ``These are only hints to the drivers, and the Linux
  1692.   driver does not use these parameters: it always optimizes for high
  1693.   throughput rather than low latency (`Server'). Low latency was
  1694.   critically important for old, non-windowed, IPX throughput.  To reduce
  1695.   the latency the MS-DOS driver for the 3c509 disables interrupts for
  1696.   some operations, blocking serial port interrupts.  Thus the need for
  1697.   the `modem speed' setting.  The Linux driver avoids the need to
  1698.   disable interrupts for long periods by operating only on whole packets
  1699.   e.g. by not starting to transmit a packet until it is completely
  1700.   transferred to the card.''
  1701.  
  1702.   Note that the ISA card detection uses a different method than most
  1703.   cards. Basically, you ask the cards to respond by sending data to an
  1704.   ID_PORT (port 0x100).  This detection method means that a particular
  1705.   card will always get detected first in a multiple ISA 3c509
  1706.   configuration.  The card with the lowest hardware ethernet address
  1707.   will always end up being eth0. This shouldn't matter to anyone, except
  1708.   for those people who want to assign a 6 byte hardware address to a
  1709.   particular interface.  If you have multiple 3c509 cards, it is best to
  1710.   append ether=0,0,ethN commands without the i/o port specified (i.e.
  1711.   use i/o=zero) and allow the probe to sort out which card is first,
  1712.   otherwise it may not detect all your cards.
  1713.  
  1714.   If this really bothers you, have a look at Donald's latest driver, as
  1715.   you may be able to use a 0x3c509 value in the unused mem address
  1716.   fields to order the detection to suit.
  1717.  
  1718.   5.1.6.  3c515
  1719.  
  1720.   Status -- Not Supported
  1721.  
  1722.   This is 3Com's farily recent ISA 100Mbps offering, codenamed
  1723.   ``CorkScrew''. Donald is working on support for these cards, and it
  1724.   will probably appear in the near future on his WWW driver page. The
  1725.   driver will be incorporated into the 3c59x/3c90x driver, so you should
  1726.   probably expect to look for it on the Vortex page:
  1727.  
  1728.   Vortex <http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html>
  1729.  
  1730.   5.1.7.  3c523
  1731.  
  1732.   Status -- Semi-Supported
  1733.  
  1734.   This MCA bus card uses the i82586, and  Chris Beauregard has modified
  1735.   the ni52 driver to work with these cards. The driver for it can be
  1736.   found in the v2.1 kernel source tree.
  1737.  
  1738.   More details can be found on the MCA-Linux page at
  1739.   http://glycerine.cetmm.uni.edu/mca/
  1740.  
  1741.   5.1.8.  3c527
  1742.  
  1743.   Status -- Not Supported
  1744.  
  1745.   Yes, another MCA card. No, not too much interest in it.  Better
  1746.   chances with the 3c529 if you are stuck with MCA.
  1747.  
  1748.   5.1.9.  3c529
  1749.  
  1750.   Status -- Semi-Supported
  1751.  
  1752.   This card actually uses the same chipset as the 3c509.  Donald
  1753.   actually put hooks into the 3c509 driver to check for MCA cards after
  1754.   probing for EISA cards, and before probing for ISA cards. But it
  1755.   hasn't evolved much further than that. Donald writes:
  1756.  
  1757.   ``I don't have access to a MCA machine (nor do I fully understand the
  1758.   probing code) so I never wrote the mca_adaptor_select_mode() or
  1759.   mca_adaptor_id() routines. If you can find a way to get the adaptor
  1760.   I/O address that assigned at boot time, you can just hard-wire that in
  1761.   place of the commented-out probe. Be sure to keep the code that reads
  1762.   the IRQ, if_port, and ethernet address.''
  1763.  
  1764.   Darrell Frappier (aa822@detroit.freenet.org) reports that you can get
  1765.   the i/o address from running the PS/2 reference diskette, and once you
  1766.   put that directly into the driver, it does actually work.
  1767.  
  1768.   The required MCA probe code will probably appear in the driver in a
  1769.   development kernel sometime soon, now that MCA support is in the
  1770.   kernel.
  1771.  
  1772.   More details can be found on the MCA-Linux page at
  1773.   http://glycerine.cetmm.uni.edu/mca/
  1774.  
  1775.   5.1.10.  3c562
  1776.  
  1777.   Status -- Supported
  1778.  
  1779.   This PCMCIA card is the combination of a 3c589B ethernet card with a
  1780.   modem. The modem appears as a standard modem to the end user. The only
  1781.   difficulty is getting the two separate linux drivers to share one
  1782.   interrupt. There are a couple of new registers and some hardware
  1783.   interrupt sharing support.  You need to use a v2.0 or newer kernel
  1784.   that has the support for interrupt sharing.
  1785.  
  1786.   As a side note, the modem part of the card has been reported to be not
  1787.   well documented for the end user (the manual just says `supports the
  1788.   AT command set') and it may not connect as well as other name brand
  1789.   modems. The recommendation is to buy a 3c589B instead, and then get a
  1790.   PCMCIA modem card from a company that specializes in modems.
  1791.  
  1792.   Thanks again to Cameron for getting a sample unit and documentation
  1793.   sent off to David Hinds. Look for support in David's PCMCIA package
  1794.   release.
  1795.  
  1796.   See ``PCMCIA Support'' for more info on PCMCIA chipsets, socket
  1797.   enablers, etc.
  1798.  
  1799.   5.1.11.  3c575
  1800.  
  1801.   Status -- Not Supported
  1802.  
  1803.   A driver for this PCMCIA card is under development and hopefully will
  1804.   be included in David's PCMCIA package within a few months.
  1805.  
  1806.   5.1.12.  3c579
  1807.  
  1808.   Status -- Supported
  1809.  
  1810.   The EISA version of the 509. The current EISA version uses the same 16
  1811.   bit wide chip rather than a 32 bit interface, so the performance
  1812.   increase isn't stunning.  Make sure the card is configured for EISA
  1813.   addressing mode.  Read the above 3c509 section for info on the driver.
  1814.  
  1815.   5.1.13.  3c589 / 3c589B
  1816.  
  1817.   Status -- Semi-Supported
  1818.  
  1819.   Many people have been using this PCMCIA card for quite some time now.
  1820.   Note that support for it is not (at present) included in the default
  1821.   kernel source tree. You will also need a supported PCMCIA controller
  1822.   chipset. There are drivers available on Donald's ftp site:
  1823.  
  1824.           cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/README.3c589
  1825.           cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/3c589.c
  1826.           cesdis.gsfc.nasa.gov:/pub/linux/pcmcia/dbether.c
  1827.  
  1828.   Or for those that are net-surfing you can try:
  1829.  
  1830.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  1831.  
  1832.   You will still need a PCMCIA socket enabler as well.
  1833.  
  1834.   See ``PCMCIA Support'' for more info on PCMCIA chipsets, socket
  1835.   enablers, etc.
  1836.  
  1837.   The "B" in the name means the same here as it does for the 3c509 case.
  1838.  
  1839.   5.1.14.  3c590 / 3c595
  1840.  
  1841.   Status -- Supported
  1842.  
  1843.   These ``Vortex'' cards are for PCI bus machines, with the '590 being
  1844.   10Mbps and the '595 being 3Com's 100Mbs offering.  Also note that you
  1845.   can run the '595 as a '590 (i.e. in a 10Mbps mode).  The driver is
  1846.   included in the v2.0 kernel source, but is also continually being
  1847.   updated. If you have problems with the driver in the v2.0 kernel, you
  1848.   can get an updated driver from the following URL:
  1849.  
  1850.   Vortex <http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html>
  1851.  
  1852.   Note that there are two different 3c590 cards out there, early models
  1853.   that had 32kB of on-board memory, and later models that only have 8kB
  1854.   (eeccch!) of memory. Chances are you won't be able to buy a new 3c59x
  1855.   for much longer, as it is being replaced with the 3c90x card. If you
  1856.   are buying a used one off somebody, try and get the 32kB version. The
  1857.   3c595 cards have 64kB, as you can't get away with only 8kB RAM at
  1858.   100Mbps!
  1859.  
  1860.   A thanks to Cameron Spitzer and Terry Murphy of 3Com for sending cards
  1861.   and documentation to Donald so he could write the driver.
  1862.  
  1863.   Donald has set up a mailing list for Vortex driver support.  To join
  1864.   the list, just do:
  1865.  
  1866.   echo subscribe | /bin/mail linux-vortex-request@cesdis.gsfc.nasa.gov
  1867.  
  1868.   5.1.15.  3c592 / 3c597
  1869.  
  1870.   Status -- Supported
  1871.  
  1872.   These are  the EISA versions of the 3c59x series of cards. The
  1873.   3c592/3c597 (aka Demon) should work with the vortex driver discussed
  1874.   above.
  1875.  
  1876.   5.1.16.  3c900 / 3c905
  1877.  
  1878.   Status -- Supported
  1879.  
  1880.   These cards (aka `Boomerang', aka EtherLink III XL) have been recently
  1881.   released to take over the place of the 3c590/3c595 cards.  Cameron
  1882.   Spitzer of 3Com writes that the ``3C900 has a scatter gather bus
  1883.   master controlled by a descriptor ring in main memory.  Aside from
  1884.   that, it's a lot like 3C590.''
  1885.  
  1886.   You may still be able to get a couple of these cards at a reduced
  1887.   price through one of 3Com's evaluation deals, if you are quick.
  1888.  
  1889.   To use this card with v2.0 kernels, you must obtain the updated
  1890.   3c59x.c driver from Donald's site at:
  1891.  
  1892.   Vortex-Page <http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html>
  1893.  
  1894.   This updated 3c59x driver allows you to use the 3c900 in a 3c59x
  1895.   compatible mode, and has been reported to be quite stable. Note that
  1896.   this updated driver may be snuck into the v2.0 source tree at a later
  1897.   date.)
  1898.  
  1899.   On the same WWW page, you will also find the experimental boomerang.c
  1900.   driver which uses some of the enhancements of the 3c900 over that
  1901.   which is available on the 3c59x cards. Since this is a
  1902.   new/experimental driver, you may be better off in using the updated
  1903.   3c59x.c if system stability is a primary concern.
  1904.   Donald has set up a mailing list for Vortex driver support
  1905.   announcements and etc.  To join the list, just do:
  1906.  
  1907.   echo subscribe | /bin/mail linux-vortex-request@cesdis.gsfc.nasa.gov
  1908.  
  1909.   5.2.  Accton
  1910.  
  1911.   5.2.1.  Accton MPX
  1912.  
  1913.   Status -- Supported
  1914.  
  1915.   Don't let the name fool you. This is still supposed to be a NE2000
  1916.   compatible card. The MPX is supposed to stand for MultiPacket
  1917.   Accelerator, which, according to Accton, increases throughput
  1918.   substantially. But if you are already sending back-to-back packets,
  1919.   how can you get any faster...
  1920.  
  1921.   5.2.2.  Accton EN1203, EN1207, EtherDuo-PCI
  1922.  
  1923.   Status -- Supported
  1924.  
  1925.   This is another implementation of the DEC 21040 PCI chip.  The EN1207
  1926.   card has the 21140, and also has a 10Base-2 connector, which has
  1927.   proved troublesome for some people in terms of selecting that media.
  1928.   Using the card with 10Base-T and 100Base-T media have worked for
  1929.   others though.  So as with all purchases, you should try and make sure
  1930.   you can return it if it doesn't work for you.
  1931.  
  1932.   See ``DEC 21040'' for more information on these cards, and the present
  1933.   driver situation.
  1934.  
  1935.   5.2.3.  Accton EN2209 Parallel Port Adaptor (EtherPocket)
  1936.  
  1937.   Status -- Semi-Supported
  1938.  
  1939.   A driver for these parallel port adapters is available but not yet
  1940.   part of the 2.0 or 2.1 kernel source. You have to get the driver from:
  1941.  
  1942.   http://www.unix-ag.uni-siegen.de/~nils/accton_linux.html
  1943.  
  1944.   5.2.4.  Accton EN2212 PCMCIA Card
  1945.  
  1946.   Status -- Semi-Supported
  1947.  
  1948.   David Hinds has been working on a driver for this card, and you are
  1949.   best to check the latest release of his PCMCIA package to see what the
  1950.   present status is.
  1951.  
  1952.   5.3.  Allied Telesyn/Telesis
  1953.  
  1954.   5.3.1.  AT1500
  1955.  
  1956.   Status --Supported
  1957.  
  1958.   These are a series of low-cost ethercards using the 79C960 version of
  1959.   the AMD LANCE. These are bus-master cards, and hence one of the faster
  1960.   ISA bus ethercards available.
  1961.  
  1962.   DMA selection and chip numbering information can be found in ``AMD
  1963.   LANCE''.
  1964.  
  1965.   More technical information on AMD LANCE based Ethernet cards can be
  1966.   found in ``Notes on AMD...''.
  1967.  
  1968.   5.3.2.  AT1700
  1969.  
  1970.   Status -- Supported
  1971.  
  1972.   Note that to access this driver during make config you still have to
  1973.   answer `Y' when asked ``Prompt for development and/or incomplete
  1974.   code/drivers?'' at the first. This is simply due to lack of feedback
  1975.   on the driver stability due to it being a relatively rare card.  This
  1976.   will probably be changed for v2.1 kernels.
  1977.  
  1978.   The Allied Telesis AT1700 series ethercards are based on the Fujitsu
  1979.   MB86965. This chip uses a programmed I/O interface, and a pair of
  1980.   fixed-size transmit buffers. This allows small groups of packets to be
  1981.   sent back-to-back, with a short pause while switching buffers.
  1982.  
  1983.   A unique feature is the ability to drive 150ohm STP (Shielded Twisted
  1984.   Pair) cable commonly installed for Token Ring, in addition to 10baseT
  1985.   100ohm UTP (unshielded twisted pair). A fibre optic version of the
  1986.   card (AT1700FT) exists as well.
  1987.  
  1988.   The Fujitsu chip used on the AT1700 has a design flaw: it can only be
  1989.   fully reset by doing a power cycle of the machine.  Pressing the reset
  1990.   button doesn't reset the bus interface. This wouldn't be so bad,
  1991.   except that it can only be reliably detected when it has been freshly
  1992.   reset. The solution/work-around is to power-cycle the machine if the
  1993.   kernel has a problem detecting the AT1700.
  1994.  
  1995.   Some production runs of the AT1700 had another problem: they are
  1996.   permanently wired to DMA channel 5.  This is undocumented, there are
  1997.   no jumpers to disable the "feature", and no driver dares use the DMA
  1998.   capability because of compatibility problems. No device driver will be
  1999.   written using DMA if installing a second card into the machine breaks
  2000.   both, and the only way to disable the DMA is with a knife.
  2001.  
  2002.   5.3.3.  AT2450
  2003.  
  2004.   Status -- Supported
  2005.  
  2006.   This is the PCI version of the AT1500, and it doesn't suffer from the
  2007.   problems that the Boca 79c970 PCI card does.  Allied Telsyn was still
  2008.   `beta testing' the card in early/mid 1995, so it may not have spread
  2009.   to various retailers yet (but it doesn't hurt to ask.)
  2010.  
  2011.   DMA selection and chip numbering information can be found in ``AMD
  2012.   LANCE''.
  2013.  
  2014.   More technical information on AMD LANCE based Ethernet cards can be
  2015.   found in ``Notes on AMD...''.
  2016.  
  2017.   5.4.  AMD / Advanced Micro Devices
  2018.  
  2019.   Carl Ching of AMD was kind enough to provide a very detailed
  2020.   description of all the relevant AMD ethernet products which helped
  2021.   clear up this section.
  2022.  
  2023.   5.4.1.  AMD LANCE (7990, 79C960/961/961A, PCnet-ISA)
  2024.  
  2025.   Status -- Supported
  2026.  
  2027.   There really is no AMD ethernet card. You are probably reading this
  2028.   because the only markings you could find on your card said AMD and the
  2029.   above number. The 7990 is the original `LANCE' chip, but most stuff
  2030.   (including this document) refer to all these similar chips as `LANCE'
  2031.   chips. (...incorrectly, I might add.)
  2032.  
  2033.   These above numbers refer to chips from AMD that are the heart of many
  2034.   ethernet cards.  For example, the Allied Telesis AT1500 (see
  2035.   ``AT1500'') and the NE1500/2100 (see ``NE1500'')  use these chips.
  2036.  
  2037.   The 7990/79c90 have long been replaced by newer versions.  The 79C960
  2038.   (a.k.a. PCnet-ISA) essentially contains the 79c90 core, along with all
  2039.   the other hardware support required, which allows a single-chip
  2040.   ethernet solution. The 79c961 (PCnet-ISA+) is a jumperless Plug and
  2041.   Play version of the '960. The final chip in the ISA series is the
  2042.   79c961A (PCnet-ISA II), which adds full duplex capabilities.  All
  2043.   cards with one of these chips should work with the lance.c driver,
  2044.   with the exception of very old cards that used the original 7990 in a
  2045.   shared memory configuration. These old cards can be spotted by the
  2046.   lack of jumpers for a DMA channel.
  2047.  
  2048.   One common problem people have is the `busmaster arbitration failure'
  2049.   message. This is printed out when the LANCE driver can't get access to
  2050.   the bus after a reasonable amount of time has elapsed (50us). This
  2051.   usually indicates that the motherboard implementation of bus-mastering
  2052.   DMA is broken, or some other device is hogging the bus, or there is a
  2053.   DMA channel conflict. If your BIOS setup has the `GAT option' (for
  2054.   Guaranteed Access Time) then try toggling/altering that setting to see
  2055.   if it helps.
  2056.  
  2057.   Also note that the driver only looks at the addresses: 0x300, 0x320,
  2058.   0x340, 0x360 for a valid card, and any address supplied by an ether=
  2059.   boot argument is silently ignored (this will be fixed) so make sure
  2060.   your card is configured for one of the above I/O addresses for now.
  2061.  
  2062.   The driver will still work fine, even if more than 16MB of memory is
  2063.   installed, since low-memory `bounce-buffers' are used when needed
  2064.   (i.e. any data from above 16MB is copied into a buffer below 16MB
  2065.   before being given to the card to transmit.)
  2066.  
  2067.   The DMA channel can be set with the low bits of the otherwise-unused
  2068.   dev->mem_start value (a.k.a. PARAM_1).  (see ``PARAM_1'') If unset it
  2069.   is probed for by enabling each free DMA channel in turn and checking
  2070.   if initialization succeeds.
  2071.  
  2072.   The HP-J2405A board is an exception: with this board it's easy to read
  2073.   the EEPROM-set values for the IRQ, and DMA.
  2074.  
  2075.   See ``Notes on AMD...''  for more info on these chips.
  2076.  
  2077.   5.4.2.  AMD 79C965 (PCnet-32)
  2078.  
  2079.   Status -- Supported
  2080.  
  2081.   This is the PCnet-32 -- a 32 bit bus-master version of the original
  2082.   LANCE chip for VL-bus and local bus systems.  chip.  While these chips
  2083.   can be operated with the standard lance.c driver, a 32 bit version
  2084.   (lance32.c) is also available that does not have to concern itself
  2085.   with any 16MB limitations associated with the ISA bus.
  2086.  
  2087.   5.4.3.  AMD 79C970/970A (PCnet-PCI)
  2088.  
  2089.   Status -- Supported
  2090.  
  2091.   This is the PCnet-PCI -- similar to the PCnet-32, but designed for PCI
  2092.   bus based systems. Please see the above PCnet-32 information.  This
  2093.   means that you need to build a kernel with PCI BIOS support enabled.
  2094.   The '970A adds full duplex support along with some other features to
  2095.   the original '970 design.
  2096.  
  2097.   Note that the Boca implementation of the 79C970 fails on fast Pentium
  2098.   machines. This is a hardware problem, as it affects DOS users as well.
  2099.   See the Boca section for more details.
  2100.  
  2101.   5.4.4.  AMD 79C971 (PCnet-FAST)
  2102.  
  2103.   Status -- Supported
  2104.  
  2105.   This is AMD's 100Mbit chip for PCI systems, which also supports full
  2106.   duplex operation. It was introduced in June 1996.
  2107.  
  2108.   5.4.5.  AMD 79C974 (PCnet-SCSI)
  2109.  
  2110.   Status -- Supported
  2111.  
  2112.   This is the PCnet-SCSI --  which is basically treated like a '970 from
  2113.   an Ethernet point of view.  Also see the above information. Don't ask
  2114.   if the SCSI half of the chip is supported -- this is the Ethernet-
  2115.   HowTo, not the SCSI-HowTo.
  2116.  
  2117.   5.5.  Ansel Communications
  2118.  
  2119.   5.5.1.  AC3200 EISA
  2120.  
  2121.   Status -- Semi-Supported
  2122.  
  2123.   Note that to access this driver during make config you still have to
  2124.   answer `Y' when asked ``Prompt for development and/or incomplete
  2125.   code/drivers?'' at the first. This is simply due to lack of feedback
  2126.   on the driver stability due to it being a relatively rare card.
  2127.  
  2128.   This driver is included in the present kernel as an alpha test driver.
  2129.   It is based on the common NS8390 chip used in the ne2000 and wd80x3
  2130.   cards.  Please see ``Alpha Drivers'' in this document for important
  2131.   information regarding alpha drivers.
  2132.  
  2133.   If you use it, let one of us know how things work out, as feedback has
  2134.   been low, even though the driver has been in the kernel since v1.1.25.
  2135.  
  2136.   If you intend on using this driver as a loadable module you should
  2137.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2138.   Based Cards as Modules'' for module specific information.
  2139.  
  2140.   5.6.  Apricot
  2141.  
  2142.   5.6.1.  Apricot Xen-II On Board Ethernet
  2143.  
  2144.   Status -- Supported
  2145.  
  2146.   This on board ethernet uses an i82596 bus-master chip.  It can only be
  2147.   at i/o address 0x300. The author of this driver is Mark Evans. By
  2148.   looking at the driver source, it appears that the IRQ is hardwired to
  2149.   10.
  2150.  
  2151.   Earlier versions of the driver had a tendency to think that anything
  2152.   living at 0x300 was an apricot NIC.  Since then the hardware address
  2153.   is checked to avoid these false detections.
  2154.  
  2155.   5.7.  Arcnet
  2156.  
  2157.   Status -- Supported
  2158.  
  2159.   With the very low cost and better performance of ethernet, chances are
  2160.   that most places will be giving away their Arcnet hardware for free,
  2161.   resulting in a lot of home systems with Arcnet.
  2162.  
  2163.   An advantage of Arcnet is that all of the cards have identical
  2164.   interfaces, so one driver will work for everyone. It also has built in
  2165.   error handling so that it supposedly never loses a packet.  (Great for
  2166.   UDP traffic!)
  2167.  
  2168.   Avery Pennarun's arcnet driver has been in the default kernel sources
  2169.   since 1.1.80. The arcnet driver uses `arc0' as its name instead of the
  2170.   usual `eth0' for ethernet devices.  Bug reports and success stories
  2171.   can be mailed to:
  2172.  
  2173.   apenwarr@foxnet.net
  2174.  
  2175.   There are information files contained in the standard kernel for
  2176.   setting jumpers and general hints.
  2177.  
  2178.   Supposedly the driver also works with the 100Mbs ARCnet cards as well!
  2179.  
  2180.   5.8.  AT&T
  2181.  
  2182.   Note that AT&T's StarLAN is an orphaned technology, like SynOptics
  2183.   LattisNet, and can't be used in a standard 10Base-T environment,
  2184.   without a hub that `speaks' both.
  2185.  
  2186.   5.8.1.  AT&T T7231 (LanPACER+)
  2187.  
  2188.   Status -- Not Supported
  2189.  
  2190.   These StarLAN cards use an interface similar to the i82586 chip. At
  2191.   one point, Matthijs Melchior (matthijs.n.melchior@att.com) was playing
  2192.   with the 3c507 driver, and almost had something useable working.
  2193.   Haven't heard much since that.
  2194.  
  2195.   5.9.  AT-Lan-Tec / RealTek
  2196.  
  2197.   5.9.1.  AT-Lan-Tec / RealTek Pocket adaptor
  2198.  
  2199.   Status -- Supported
  2200.  
  2201.   This is a generic, low-cost OEM pocket adaptor being sold by AT-Lan-
  2202.   Tec, and (likely) a number of other suppliers. A driver for it is
  2203.   included in the standard kernel.  Note that there is substantial
  2204.   information contained in the driver source file `atp.c'.
  2205.  
  2206.   Note that the device name that you pass to ifconfig is not eth0 but
  2207.   atp0 for this device.
  2208.  
  2209.   5.9.2.  RealTek 8029
  2210.  
  2211.   Status -- Supported
  2212.  
  2213.   This is a PCI single chip implementation of a NE2000 clone.  Various
  2214.   vendors are now selling cards with this chip. See ``NE2000-PCI'' for
  2215.   information on using any of these cards.
  2216.  
  2217.   5.9.3.  RealTek 8129/8139
  2218.  
  2219.   Status -- Semi-Supported
  2220.  
  2221.   Another PCI single chip ethernet solution from RealTek.  A driver for
  2222.   cards based upon this chip is due to be included in the v2.0.34
  2223.   release of linux. For more information, see:
  2224.  
  2225.   http://cesdis.gsfc.nasa.gov/linux/drivers/rtl8139.html
  2226.  
  2227.   5.10.  Boca Research
  2228.  
  2229.   Yes, they make more than just multi-port serial cards.  :-)
  2230.  
  2231.   5.10.1.  Boca BEN (PCI, VLB)
  2232.  
  2233.   Status -- Supported
  2234.  
  2235.   These cards are based on AMD's PCnet chips.  Perspective buyers should
  2236.   be warned that many users have had endless problems with these cards.
  2237.   Owners of fast Pentium systems have been especially hit. Note that
  2238.   this is not a driver problem, as it hits DOS/Win/NT users as well.
  2239.   Boca's technical support number is (407) 241-8088, and you can also
  2240.   reach them at 75300.2672@compuserve.com.
  2241.  
  2242.   Donald did a comparitive test with the above Boca PCI card and a
  2243.   similar Allied Telsyn PCnet/PCI implementation, which showed that the
  2244.   problem lies in Boca's implementation of the PCnet/PCI chip. These
  2245.   test results can be accessed on Don's www server.
  2246.  
  2247.   Linux at CESDIS <http://cesdis.gsfc.nasa.gov/linux/>
  2248.  
  2249.   Boca is offering a `warranty repair' for affected owners, which
  2250.   involves adding one of the missing capacitors, but it appears that
  2251.   this fix doesn't work 100 percent for most people, although it helps
  2252.   some.
  2253.  
  2254.   If you are still thinking of buying one of these cards, then at least
  2255.   try and get a 7 day unconditional return policy, so that if it doesn't
  2256.   work properly in your system, you can return it.
  2257.  
  2258.   More general information on the AMD chips can be found in ``AMD
  2259.   LANCE''.
  2260.  
  2261.   More technical information on AMD LANCE based Ethernet cards can be
  2262.   found in ``Notes on AMD...''.
  2263.  
  2264.   5.11.  Cabletron
  2265.  
  2266.   Donald writes: `Yes, another one of these companies that won't release
  2267.   its programming information. They waited for months before actually
  2268.   confirming that all their information was proprietary, deliberately
  2269.   wasting my time. Avoid their cards like the plague if you can.  Also
  2270.   note that some people have phoned Cabletron, and have been told things
  2271.   like `a D. Becker is working on a driver for linux' -- making it sound
  2272.   like I work for them. This is NOT the case.'
  2273.  
  2274.   If you feel like asking them why they don't want to release their low
  2275.   level programming info so that people can use their cards, write to
  2276.   support@ctron.com.  Tell them that you are using Linux, and are
  2277.   disappointed that they don't support open systems. And no, the usual
  2278.   driver development kit they supply is useless. It is just a DOS object
  2279.   file that you are supposed to link against. Which you aren't allowed
  2280.   to even reverse engineer.
  2281.  
  2282.   5.11.1.  E10**, E10**-x, E20**, E20**-x
  2283.  
  2284.   Status -- Semi-Supported
  2285.  
  2286.   These are NEx000 almost-clones that are reported to work with the
  2287.   standard NEx000 drivers, thanks to a ctron-specific check during the
  2288.   probe. If there are any problems, they are unlikely to be fixed, as
  2289.   the programming information is unavailable.
  2290.  
  2291.   5.11.2.  E2100
  2292.  
  2293.   Status -- Semi-Supported
  2294.  
  2295.   Again, there is not much one can do when the programming information
  2296.   is proprietary.  The E2100 is a poor design. Whenever it maps its
  2297.   shared memory in during a packet transfer, it maps it into the whole
  2298.   128K region! That means you can't safely use another interrupt-driven
  2299.   shared memory device in that region, including another E2100.  It will
  2300.   work most of the time, but every once in a while it will bite you.
  2301.   (Yes, this problem can be avoided by turning off interrupts while
  2302.   transferring packets, but that will almost certainly lose clock
  2303.   ticks.) Also, if you mis-program the board, or halt the machine at
  2304.   just the wrong moment, even the reset button won't bring it back. You
  2305.   will have to turn it off and leave it off for about 30 seconds.
  2306.  
  2307.   Media selection is automatic, but you can override this with the low
  2308.   bits of the dev->mem_end parameter.  See ``PARAM_2''. Module users can
  2309.   specify an xcvr=N value on the insmod command line to do the same.
  2310.  
  2311.   Also, don't confuse the E2100 for a NE2100 clone.  The E2100 is a
  2312.   shared memory NatSemi DP8390 design, roughly similar to a brain-
  2313.   damaged WD8013, whereas the NE2100 (and NE1500) use a bus-mastering
  2314.   AMD LANCE design.
  2315.  
  2316.   There is an E2100 driver included in the standard kernel.  However,
  2317.   seeing as programming info isn't available, don't expect bug-fixes.
  2318.   Don't use one unless you are already stuck with the card.
  2319.  
  2320.   If you intend on using this driver as a loadable module you should
  2321.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2322.   Based Cards as Modules'' for module specific information.
  2323.  
  2324.   5.11.3.  E22**
  2325.  
  2326.   Status -- Semi-Supported
  2327.  
  2328.   According to information in a Cabletron Tech Bulletin, these cards use
  2329.   the standard AMD PC-Net chipset (see ``AMD PC-Net'') and should work
  2330.   with the generic lance driver.
  2331.  
  2332.   5.12.  Cogent
  2333.  
  2334.   Here is where and how to reach them:
  2335.  
  2336.           Cogent Data Technologies, Inc.
  2337.           175 West Street, P.O. Box 926
  2338.           Friday Harbour, WA 98250, USA.
  2339.  
  2340.           Cogent Sales
  2341.           15375 S.E. 30th Place, Suite 310
  2342.           Bellevue, WA 98007, USA.
  2343.  
  2344.           Technical Support:
  2345.           Phone (360) 378-2929 between 8am and 5pm PST
  2346.           Fax (360) 378-2882
  2347.           Compuserve GO COGENT
  2348.           Bulletin Board Service (360) 378-5405
  2349.           Internet: support@cogentdata.com
  2350.  
  2351.   5.12.1.  EM100-ISA/EISA
  2352.  
  2353.   Status -- Semi-Supported
  2354.  
  2355.   These cards use the SMC 91c100 chip and may work with the SMC 91c92
  2356.   driver, but this has yet to be verified.
  2357.  
  2358.   5.12.2.  Cogent eMASTER+, EM100-PCI, EM400, EM960, EM964
  2359.  
  2360.   Status -- Supported
  2361.  
  2362.   These are yet another DEC 21040 implementation that should hopefully
  2363.   work fine with the standard 21040 driver.
  2364.  
  2365.   The EM400 and the EM964 are four port cards using a DEC 21050 bridge
  2366.   and 4 21040 chips.
  2367.  
  2368.   See ``DEC 21040'' for more information on these cards, and the present
  2369.   driver situation.
  2370.  
  2371.   5.13.  Compaq
  2372.  
  2373.   Compaq aren't really in the business of making ethernet cards, but a
  2374.   lot of their systems have embedded ethernet controllers on the
  2375.   motherboard.
  2376.  
  2377.   5.13.1.  Compaq Deskpro / Compaq XL (Embedded AMD Chip)
  2378.  
  2379.   Status -- Supported
  2380.  
  2381.   Machines such as the XL series have an AMD 79c97x PCI chip on the
  2382.   mainboard that can be used with the standard LANCE driver. But before
  2383.   you can use it, you have to do some trickery to get the PCI BIOS to a
  2384.   place where Linux can see it. Frank Maas was kind enough to provide
  2385.   the details:
  2386.  
  2387.   `` The problem with this Compaq machine however is that the PCI
  2388.   directory is loaded in high memory, at a spot where the Linux kernel
  2389.   can't (won't) reach. Result: the card is never detected nor is it
  2390.   usable (sideline: the mouse won't work either) The workaround (as
  2391.   described thoroughly in http://www-c724.uibk.ac.at/XL/) is to load MS-
  2392.   DOS, launch a little driver Compaq wrote and then load the Linux
  2393.   kernel using LOADLIN. Ok, I'll give you time to say `yuck, yuck', but
  2394.   for now this is the only working solution I know of. The little driver
  2395.   simply moves the PCI directory to a place where it is normally stored
  2396.   (and where Linux can find it).''
  2397.  
  2398.   More general information on the AMD chips can be found in ``AMD
  2399.   LANCE''.
  2400.  
  2401.   5.14.  Danpex
  2402.  
  2403.   5.14.1.  Danpex EN9400
  2404.  
  2405.   Status -- Supported
  2406.  
  2407.   Yet another card based on the DEC 21040 chip, reported to work fine,
  2408.   and at a relatively cheap price.
  2409.  
  2410.   See ``DEC 21040'' for more information on these cards, and the present
  2411.   driver situation.
  2412.  
  2413.   5.15.  D-Link
  2414.  
  2415.   5.15.1.  DE-100, DE-200, DE-220-T, DE-250
  2416.  
  2417.   Status -- Supported
  2418.  
  2419.   Some of the early D-Link cards didn't have the 0x57 PROM signature,
  2420.   but the ne2000 driver knows about them.  For the software configurable
  2421.   cards, you can get the config program from www.dlink.com.  The DE2**
  2422.   cards were the most widely reported as having the spurious transfer
  2423.   address mismatch errors with early versions of linux.  Note that there
  2424.   are also cards from Digital (DEC) that are also named DE100 and DE200,
  2425.   but the similarity stops there.
  2426.  
  2427.   5.15.2.  DE-520
  2428.  
  2429.   Status -- Supported
  2430.  
  2431.   This is a PCI card using the PCI version of AMD's LANCE chip.  DMA
  2432.   selection and chip numbering information can be found in ``AMD
  2433.   LANCE''.
  2434.  
  2435.   More technical information on AMD LANCE based Ethernet cards can be
  2436.   found in ``Notes on AMD...''.
  2437.  
  2438.   5.15.3.  DE-530
  2439.  
  2440.   Status -- Supported
  2441.  
  2442.   This is a generic DEC 21040 PCI chip implementation, and is reported
  2443.   to work with the generic 21040 tulip driver.
  2444.  
  2445.   See ``DEC 21040'' for more information on these cards, and the present
  2446.   driver situation.
  2447.  
  2448.   5.15.4.  DE-600
  2449.  
  2450.   Status -- Supported
  2451.  
  2452.   Laptop users and other folk who might want a quick way to put their
  2453.   computer onto the ethernet may want to use this. The driver is
  2454.   included with the default kernel source tree.  Bjorn Ekwall
  2455.   bj0rn@blox.se wrote the driver.  Expect about 180kb/s transfer speed
  2456.   from this via the parallel port. You should read the README.DLINK file
  2457.   in the kernel source tree.
  2458.  
  2459.   Note that the device name that you pass to ifconfig is now eth0 and
  2460.   not the previously used dl0.
  2461.   If your parallel port is not at the standard 0x378 then you will have
  2462.   to recompile. Bjorn writes: ``Since the DE-620 driver tries to sqeeze
  2463.   the last microsecond from the loops, I made the irq and port address
  2464.   constants instead of variables. This makes for a usable speed, but it
  2465.   also means that you can't change these assignements from e.g. lilo;
  2466.   you _have_ to recompile...'' Also note that some laptops implement the
  2467.   on-board parallel port at 0x3bc which is where the parallel ports on
  2468.   monochrome cards were/are.
  2469.  
  2470.   5.15.5.  DE-620
  2471.  
  2472.   Status -- Supported
  2473.  
  2474.   Same as the DE-600, only with two output formats.  Bjorn has written a
  2475.   driver for this model, for kernel versions 1.1 and above. See the
  2476.   above information on the DE-600.
  2477.  
  2478.   5.15.6.  DE-650
  2479.  
  2480.   Status -- Semi-Supported
  2481.  
  2482.   Some people have been using this PCMCIA card for some time now with
  2483.   their notebooks. It is a basic 8390 design, much like a NE2000. The
  2484.   LinkSys PCMCIA card and the IC-Card Ethernet (available from Midwest
  2485.   Micro) are supposedly DE-650 clones as well.  Note that at present,
  2486.   this driver is not part of the standard kernel, and so you will have
  2487.   to do some patching.
  2488.  
  2489.   See ``PCMCIA Support'' in this document, and if you can, have a look
  2490.   at:
  2491.  
  2492.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  2493.  
  2494.   5.16.  DFI
  2495.  
  2496.   5.16.1.  DFINET-300 and DFINET-400
  2497.  
  2498.   Status -- Supported
  2499.  
  2500.   These cards are now detected (as of 0.99pl15) thanks to Eberhard
  2501.   Moenkeberg emoenke@gwdg.de who noted that they use `DFI' in the first
  2502.   3 bytes of the prom, instead of using 0x57 in bytes 14 and 15, which
  2503.   is what all the NE1000 and NE2000 cards use. (The 300 is an 8 bit
  2504.   pseudo NE1000 clone, and the 400 is a pseudo NE2000 clone.)
  2505.  
  2506.   5.17.  Digital / DEC
  2507.  
  2508.   5.17.1.  DEPCA, DE100/1, DE200/1/2, DE210, DE422
  2509.  
  2510.   Status -- Supported
  2511.  
  2512.   As of linux v1.0, there is a driver included as standard for these
  2513.   cards. It was written by David C. Davies.  There is documentation
  2514.   included in the source file `depca.c', which includes info on how to
  2515.   use more than one of these cards in a machine. Note that the DE422 is
  2516.   an EISA card. These cards are all based on the AMD LANCE chip.  See
  2517.   ``AMD LANCE'' for more info.  A maximum of two of the ISA cards can be
  2518.   used, because they can only be set for 0x300 and 0x200 base I/O
  2519.   address.  If you are intending to do this, please read the notes in
  2520.   the driver source file depca.c in the standard kernel source tree.
  2521.  
  2522.   This driver will also work on Alpha CPU based machines, and there are
  2523.   various ioctl()s that the user can play with.
  2524.  
  2525.   5.17.2.  Digital EtherWorks 3 (DE203, DE204, DE205)
  2526.  
  2527.   Status -- Supported
  2528.  
  2529.   Included into kernels v1.1.62 and above is this driver, also by David
  2530.   C. Davies of DEC. These cards use a proprietary chip from DEC, as
  2531.   opposed to the LANCE chip used in the earlier cards like the DE200.
  2532.   These cards support both shared memory or programmed I/O, although you
  2533.   take about a 50%performance hit if you use PIO mode. The shared memory
  2534.   size can be set to 2kB, 32kB or 64kB, but only 2 and 32 have been
  2535.   tested with this driver. David says that the performance is virtually
  2536.   identical between the 2kB and 32kB mode. There is more information
  2537.   (including using the driver as a loadable module) at the top of the
  2538.   driver file ewrk3.c and also in README.ewrk3.  Both of these files
  2539.   come with the standard kernel distribution.
  2540.  
  2541.   The standard driver has a number of interesting ioctl() calls that can
  2542.   be used to get or clear packet statistics, read/write the EEPROM,
  2543.   change the hardware address, and the like. Hackers can see the source
  2544.   code for more info on that one.
  2545.  
  2546.   David has also written a configuration utility for this card (along
  2547.   the lines of the DOS program NICSETUP.EXE) along with other tools.
  2548.   These can be found on sunsite.unc.edu in the directory
  2549.   /pub/Linux/system/Network/management -- look for the file ewrk3tools-
  2550.   X.XX.tar.gz.
  2551.  
  2552.   The next release of this driver (v0.40) will have Alpha CPU support
  2553.   like depca.c does and is available from David now if you require it.
  2554.  
  2555.   5.17.3.  DE425 (EISA), DE434, DE435, DE500
  2556.  
  2557.   Status -- Supported
  2558.  
  2559.   These cards are based on the 21040 chip mentioned below.  Included
  2560.   into kernels v1.1.86 and above is this driver, also by David C. Davies
  2561.   of DEC. It sure is nice to have support from someone on the inside
  2562.   ;-) The DE500 uses the newer 21140 chip to provide 10/100Mbs ethernet
  2563.   connections.  Have a read of the 21040 section below for extra info.
  2564.  
  2565.   Note that as of 1.1.91, David has added a compile time option that
  2566.   will allow non-DEC cards to work with this driver. Have a look at
  2567.   README.de4x5 for details.
  2568.  
  2569.   All the Digital cards will autoprobe for their media (except,
  2570.   temporarily, the DE500 due to a patent issue).
  2571.  
  2572.   This driver is also ALPHA CPU ready and supports being loaded as a
  2573.   module.  Users can access the driver internals through ioctl() calls -
  2574.   see the 'ewrk3' tools and the de4x5.c sources for information about
  2575.   how to do this.
  2576.   5.17.4.  DEC 21040, 21041, 2114x, Tulip
  2577.  
  2578.   Status -- Supported
  2579.  
  2580.   The DEC 21040 is a bus-mastering single chip ethernet solution from
  2581.   Digital, similar to AMD's PCnet chip. The 21040 is specifically
  2582.   designed for the PCI bus architecture.  SMC's new EtherPower PCI card
  2583.   uses this chip.
  2584.  
  2585.   You have a choice of two drivers for cards based on this chip. There
  2586.   is the DE425 driver discussed above, and the generic 21040 driver that
  2587.   Donald has written.
  2588.  
  2589.   Warning: Even though your card may be based upon this chip, the
  2590.   drivers may not work for you. David C. Davies writes:
  2591.  
  2592.   ``There are no guarantees that either `tulip.c' OR `de4x5.c' will run
  2593.   any DC2114x based card other than those they've been written to
  2594.   support.  WHY?? You ask.  Because there is a register, the General
  2595.   Purpose Register (CSR12) that (1) in the DC21140A is programmable by
  2596.   each vendor and they all do it differently (2) in the DC21142/3 this
  2597.   is now an SIA control register (a la DC21041). The only small ray of
  2598.   hope is that we can decode the SROM to help set up the driver.
  2599.   However, this is not a guaranteed solution since some vendors (e.g.
  2600.   SMC 9332 card) don't follow the Digital Semiconductor recommended SROM
  2601.   programming format."
  2602.  
  2603.   In non-technical terms, this means that if you aren't sure that an
  2604.   unknown card with a DC2114x chip will work with the linux driver(s),
  2605.   then make sure you can return the card to the place of purchase before
  2606.   you pay for it.
  2607.  
  2608.   The updated 21041 chip is also found in place of the 21040 on most of
  2609.   the later SMC EtherPower cards.  The 21140 is for supporting 100Base-?
  2610.   and works with the Linux drivers for the 21040 chip.  To use David's
  2611.   de4x5 driver with non-DEC cards, have a look at README.de4x5 for
  2612.   details.
  2613.  
  2614.   Donald has used SMC EtherPower-10/100 cards to develop the `tulip'
  2615.   driver. Note that the driver that is in the standard kernel tree at
  2616.   the moment is not the most up to date version. If you are having
  2617.   trouble with this driver, you should get the newest version from
  2618.   Donald's ftp/WWW site.
  2619.  
  2620.   Tulip Driver <http://cesdis.gsfc.nasa.gov/linux/drivers/tulip.html>
  2621.  
  2622.   The above URL also contains a (non-exhaustive) list of various
  2623.   cards/vendors that use the 21040 chip.
  2624.  
  2625.   Also note that the tulip driver is still considered an alpha driver
  2626.   (see ``Alpha Drivers'') at the moment, and should be treated as such.
  2627.   To use it, you will have to edit arch/i386/config.in and uncomment the
  2628.   line for CONFIG_DEC_ELCP support.
  2629.  
  2630.   Donald has even set up a mailing list for tulip driver support
  2631.   announcements, etc.  To join it just type:
  2632.  
  2633.   echo subscribe | /bin/mail linux-tulip-request@cesdis.gsfc.nasa.gov
  2634.  
  2635.   5.18.  Farallon
  2636.  
  2637.   Farallon sells EtherWave adaptors and transceivers. This device allows
  2638.   multiple 10baseT devices to be daisy-chained.
  2639.  
  2640.   5.18.1.  Farallon Etherwave
  2641.  
  2642.   Status -- Supported
  2643.  
  2644.   This is reported to be a 3c509 clone that includes the EtherWave
  2645.   transceiver. People have used these successfully with Linux and the
  2646.   present 3c509 driver. They are too expensive for general use, but are
  2647.   a great option for special cases.  Hublet prices start at $125, and
  2648.   Etherwave adds $75-$100 to the price of the board -- worth it if you
  2649.   have pulled one wire too few, but not if you are two network drops
  2650.   short.
  2651.  
  2652.   5.19.  Hewlett Packard
  2653.  
  2654.   The 272** cards use programmed I/O, similar to the NE*000 boards, but
  2655.   the data transfer port can be `turned off' when you aren't accessing
  2656.   it, avoiding problems with autoprobing drivers.
  2657.  
  2658.   Thanks to Glenn Talbott for helping clean up the confusion in this
  2659.   section regarding the version numbers of the HP hardware.
  2660.  
  2661.   5.19.1.  27245A
  2662.  
  2663.   Status -- Supported
  2664.  
  2665.   8 Bit 8390 based 10BaseT, not recommended for all the 8 bit reasons.
  2666.   It was re-designed a couple years ago to be highly integrated which
  2667.   caused some changes in initialization timing which only affected
  2668.   testing programs, not LAN drivers. (The new card is not `ready' as
  2669.   soon after switching into and out of loopback mode.)
  2670.  
  2671.   If you intend on using this driver as a loadable module you should
  2672.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2673.   Based Cards as Modules'' for module specific information.
  2674.  
  2675.   5.19.2.  HP PC Lan+ (27247, 27252A)
  2676.  
  2677.   Status -- Supported
  2678.  
  2679.   The HP PC Lan+ is different to the standard HP PC Lan card. This
  2680.   driver was added to the list of drivers in the standard kernel during
  2681.   the v1.1.x development cycle. It can be operated in either a PIO mode
  2682.   like a ne2000, or a shared memory mode like a wd8013.
  2683.  
  2684.   The 47B is a 16 Bit 8390 based 10BaseT w/AUI, and the 52A is a 16 Bit
  2685.   8390 based ThinLAN w/AUI.  These cards have 32K onboard RAM for Tx/Rx
  2686.   packet buffering instead of the usual 16KB, and they both offer LAN
  2687.   connector autosense.
  2688.  
  2689.   If you intend on using this driver as a loadable module you should
  2690.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2691.   Based Cards as Modules'' for module specific information.
  2692.  
  2693.   5.19.3.  HP-J2405A
  2694.  
  2695.   Status -- Supported
  2696.  
  2697.   These are lower priced, and slightly faster than the 27247/27252A, but
  2698.   are missing some features, such as AUI, ThinLAN connectivity, and boot
  2699.   PROM socket.  This is a fairly generic LANCE design, but a minor
  2700.   design decision makes it incompatible with a generic `NE2100' driver.
  2701.   Special support for it (including reading the DMA channel from the
  2702.   board) is included thanks to information provided by HP's Glenn
  2703.   Talbott.
  2704.  
  2705.   More technical information on LANCE based cards can be found in
  2706.   ``Notes on AMD...''
  2707.  
  2708.   5.19.4.  HP-Vectra On Board Ethernet
  2709.  
  2710.   Status -- Supported
  2711.  
  2712.   The HP-Vectra has an AMD PCnet chip on the motherboard.  Earlier
  2713.   kernel versions would detect it as the HP-J2405A but that would fail,
  2714.   as the Vectra doesn't report the IRQ and DMA channel like the J2405A.
  2715.   Get a kernel newer than v1.1.53 to avoid this problem.
  2716.  
  2717.   DMA selection and chip numbering information can be found in ``AMD
  2718.   LANCE''.
  2719.  
  2720.   More technical information on LANCE based cards can be found in
  2721.   ``Notes on AMD...''
  2722.  
  2723.   5.19.5.  HP 10/100 VG Any Lan Cards (27248B, J2573, J2577, J2585)
  2724.  
  2725.   Status -- Supported
  2726.  
  2727.   As of early 1.3.x kernels, this driver was made available by Jaroslav
  2728.   Kysela, (perex@pf.jcu.cz). Due to the newness of the driver and the
  2729.   relatively small number of VG cards in use, feedback on this driver
  2730.   has been low.
  2731.  
  2732.   Donald has also written a driver for these cards. Unlike the above, it
  2733.   is not presently in the standard kernel source tree.  Check out the
  2734.   following URL for more information on Donald's 100VG work.
  2735.  
  2736.   Donald's 100VG Page
  2737.   <http://cesdis.gsfc.nasa.gov/linux/drivers/100vg.html>
  2738.  
  2739.   5.20.  IBM / International Business Machines
  2740.  
  2741.   5.20.1.  IBM Thinkpad 300
  2742.  
  2743.   Status -- Supported
  2744.  
  2745.   This is compatible with the Intel based Zenith Z-note.  See ``Z-note''
  2746.   for more info.
  2747.  
  2748.   Supposedly this site has a comprehensive database of useful stuff for
  2749.   newer versions of the Thinkpad. I haven't checked it out myself yet.
  2750.  
  2751.   Thinkpad-info <http://peipa.essex.ac.uk/html/linux-thinkpad.html>
  2752.  
  2753.   For those without a WWW browser handy, try
  2754.   peipa.essex.ac.uk:/pub/tp750/
  2755.  
  2756.   5.20.2.  IBM Credit Card Adaptor for Ethernet
  2757.  
  2758.   Status -- Semi-Supported
  2759.  
  2760.   People have been using this PCMCIA card with Linux as well.  Similar
  2761.   points apply, those being that you need a supported PCMCIA chipset on
  2762.   your notebook, and that you will have to patch the PCMCIA support into
  2763.   the standard kernel.
  2764.  
  2765.   See ``PCMCIA Support'' in this document, and if you can, have a look
  2766.   at:
  2767.  
  2768.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  2769.  
  2770.   5.20.3.  IBM Token Ring
  2771.  
  2772.   Status -- Semi-Supported
  2773.  
  2774.   To support token ring requires more than only writing a device driver,
  2775.   it also requires writing the source routing routines for token ring.
  2776.   It is the source routing that would be the most time comsuming to
  2777.   write.
  2778.  
  2779.   Peter De Schrijver has been spending some time on Token Ring lately.
  2780.   and has worked with IBM ISA and MCA token ring cards.
  2781.  
  2782.   The present token ring code has been included into the first of the
  2783.   1.3.x series kernels.
  2784.  
  2785.   Peter says that it was originally tested on an MCA 16/4 Megabit Token
  2786.   Ring board, but it should work with other Tropic based boards.
  2787.  
  2788.   5.21.  ICL Ethernet Cards
  2789.  
  2790.   5.21.1.  ICL EtherTeam 16i/32
  2791.  
  2792.   Status -- Supported
  2793.  
  2794.   Mika Kuoppala (miku@pupu.elt.icl.fi) wrote this driver, and it was
  2795.   included into early 1.3.4x kernels. It uses the Fujitsu MB86965 chip
  2796.   that is also used on the at1700 cards.
  2797.  
  2798.   5.22.  Intel Ethernet Cards
  2799.  
  2800.   5.22.1.  Ether Express
  2801.  
  2802.   Status -- Supported
  2803.  
  2804.   This card uses the intel i82586. (Surprise, huh?)  Earlier versions of
  2805.   this driver (in v1.2 kernels) were classed as alpha-test, as it didn't
  2806.   work well for most people.  The driver in the v2.0 kernel seems to
  2807.   work much better for those who have tried it. The comments at the top
  2808.   of the driver source list some of the problems associated with these
  2809.   cards.
  2810.  
  2811.   There is also some technical information available on the i82586 in
  2812.   ``Programming the Intel Chips'' and also in the source code for the
  2813.   driver `eexpress.c'. Don't be afraid to read it. ;-)
  2814.  
  2815.   5.22.2.  Ether Express PRO/10
  2816.  
  2817.   Status -- Supported
  2818.  
  2819.   Bao Chau Ha has written a driver for these cards that has been
  2820.   included into early 1.3.x kernels. It may also work with some of the
  2821.   Compaq built-in ethernet systems that are based on the i82595 chip.
  2822.  
  2823.   5.22.3.  Ether Express PRO/10 PCI (EISA)
  2824.  
  2825.   Status -- Semi-Supported
  2826.  
  2827.   John Stalba (stalba@ultranet.com) has written a driver for the PCI
  2828.   version. These cards the PLX9036 PCI interface chip with the Intel
  2829.   i82596 LAN controller chip. If your card has the i82557 chip, then you
  2830.   don't have this card, but rather the ``+'' version discussed next, and
  2831.   hence want the EEPro100 driver instead.
  2832.  
  2833.   You can get the alpha driver for the PRO/10 PCI card, along with
  2834.   instructions on how to use it at:
  2835.  
  2836.   EEPro10 Driver <http://www.ultranet.com/~stalba/eep10pci.html>
  2837.  
  2838.   If you have the EISA card, you will probably have to hack the driver a
  2839.   bit to account for the different (PCI vs. EISA) detection mechanisms
  2840.   that are used in each case.
  2841.  
  2842.   5.22.4.  Ether Express PRO/10+
  2843.  
  2844.   Status -- Supported
  2845.  
  2846.   A slight change in name (from the above) but a different design.  This
  2847.   card uses the i82557 chip, and hence uses the eepro100 driver
  2848.   described below.
  2849.  
  2850.   5.22.5.  Ether Express PRO 10/100B
  2851.  
  2852.   Status -- Supported
  2853.  
  2854.   A driver for this card is included in the v2.0 kernel source tree, so
  2855.   you may no longer have to get it separately.  Note that this driver
  2856.   will not work with the older 100A cards.
  2857.  
  2858.   For driver updates and/or driver support, have a look at:
  2859.  
  2860.   EEPro-100B Page
  2861.   <http://cesdis.gsfc.nasa.gov/linux/drivers/eepro100.html>
  2862.  
  2863.   Apparently Donald had to sign a non-disclosure agreement that stated
  2864.   he could actually disclose the driver source code! How is that for
  2865.   sillyness on intel's part?
  2866.  
  2867.   This driver will be included into the v2.1 source tree sometime in the
  2868.   future. There is also a mailing list for driver announcements. To join
  2869.   it, just do:
  2870.  
  2871.   echo subscribe | /bin/mail linux-eepro100-request@cesdis.gsfc.nasa.gov
  2872.  
  2873.   5.23.  LinkSys
  2874.  
  2875.   LinkSys make a handful of different NE2000 clones, some straight ISA
  2876.   cards, some ISA plug and play and some even ne2000-PCI clones based on
  2877.   one of the supported ne2000-PCI chipsets. There are just too many
  2878.   models to list here.
  2879.  
  2880.   Linux gets a mention in their WWW support page. Have a look at:
  2881.  
  2882.   http://www.linksys.com/support/solution/nos/linux.htm
  2883.  
  2884.   if you are having trouble using one of their cards with linux.
  2885.  
  2886.   5.23.1.  LinkSys Etherfast 10/100 Cards.
  2887.  
  2888.   Status -- Supported
  2889.  
  2890.   Beware with these cards - apparently some use the DEC chipset, and
  2891.   some use a proprietary PNIC chipset. The drivers for the DEC chips
  2892.   will not work with the PNIC cards. Thanks to Blake Wright for
  2893.   reporting this useful bit of information.
  2894.  
  2895.   5.23.2.  LinkSys Pocket Ethernet Adapter Plus (PEAEPP)
  2896.  
  2897.   Status -- Supported
  2898.  
  2899.   This is supposedly a DE-620 clone, and is reported to work well with
  2900.   that driver. See ``DE-620'' for more information.
  2901.  
  2902.   5.23.3.  LinkSys PCMCIA Adaptor
  2903.  
  2904.   Status -- Supported
  2905.  
  2906.   This is supposed to be a re-badged DE-650. See ``DE-650'' for more
  2907.   information.
  2908.  
  2909.   5.24.  Microdyne
  2910.  
  2911.   5.24.1.  Microdyne Exos 205T
  2912.  
  2913.   Status -- Semi-Supported
  2914.  
  2915.   Another i82586 based card. Dirk Niggemann dabn100@hermes.cam.ac.uk has
  2916.   written a driver that he classes as ``pre-alpha'' that he would like
  2917.   people to test. Mail him for more details.
  2918.   5.25.  Mylex
  2919.  
  2920.   Mylex can be reached at the following numbers, in case anyone wants to
  2921.   ask them anything.
  2922.  
  2923.           MYLEX CORPORATION, Fremont
  2924.           Sales:  800-77-MYLEX, (510) 796-6100
  2925.           FAX:    (510) 745-8016.
  2926.  
  2927.   They also have a web site: Mylex WWW Site <http://www.mylex.com>
  2928.  
  2929.   5.25.1.  Mylex LNE390A, LNE390B
  2930.  
  2931.   Status -- Semi-Supported
  2932.  
  2933.   These are fairly old EISA cards that make use of a shared memory
  2934.   implementation similar to the wd80x3. If you are interested in testing
  2935.   a driver for this card, contact me (pg).
  2936.  
  2937.   5.25.2.  Mylex LNP101
  2938.  
  2939.   Status -- Supported
  2940.  
  2941.   This is a PCI card that is based on DEC's 21040 chip.  It is
  2942.   selectable between 10BaseT, 10Base2 and 10Base5 output.  The LNP101
  2943.   card has been verified to work with the generic 21040 driver.
  2944.  
  2945.   See the section on the 21040 chip (``DEC 21040'') for more
  2946.   information.
  2947.  
  2948.   5.25.3.  Mylex LNP104
  2949.  
  2950.   Status -- Semi-Supported
  2951.  
  2952.   The LNP104 uses the DEC 21050 chip to deliver four independent 10BaseT
  2953.   ports. It should work with recent 21040 drivers that know how to share
  2954.   IRQs, but nobody has reported trying it yet (that I am aware of).
  2955.  
  2956.   5.26.  Novell Ethernet, NExxxx and associated clones.
  2957.  
  2958.   The prefix `NE' came from Novell Ethernet. Novell followed the
  2959.   cheapest NatSemi databook design and sold the manufacturing rights
  2960.   (spun off?) Eagle, just to get reasonably-priced ethercards into the
  2961.   market. (The now ubiquitous NE2000 card.)
  2962.  
  2963.   5.26.1.  NE1000, NE2000
  2964.  
  2965.   Status -- Supported
  2966.  
  2967.   NOTE: If you are using a kernel that is older than v1.2.9, it is
  2968.   strongly recommended that you upgrade to a newer version. There was an
  2969.   important bugfix made to the ne driver in 1.2.7, and another important
  2970.   bugfix made to the upper layers (dev.c) in 1.2.9. Both of these bugs
  2971.   can cause a ne2000 card to hang your computer.
  2972.  
  2973.   The ne2000 is now a generic name for a bare-bones design around the
  2974.   NatSemi 8390 chip. They use programmed I/O rather than shared memory,
  2975.   leading to easier installation but slightly lower performance and a
  2976.   few problems. Again, the savings of using an 8 bit NE1000 over the
  2977.   NE2000 are only warranted if you expect light use.  Some problems can
  2978.   arise with poor NE2000 clones. You should see ``Problems with...'',
  2979.   and ``Poor NE2000 Clones''
  2980.  
  2981.   Some recently introduced NE2000 clones use the National Semiconductor
  2982.   `AT/LANTic' 83905 chip, which offers a shared memory mode similar to
  2983.   the wd8013 and EEPROM software configuration. The shared memory mode
  2984.   will offer less CPU usage (i.e. more efficient) than the programmed
  2985.   i/o mode.
  2986.  
  2987.   In general it is not a good idea to put a NE2000 clone at I/O address
  2988.   0x300 because nearly every device driver probes there at boot. Some
  2989.   poor NE2000 clones don't take kindly to being prodded in the wrong
  2990.   areas, and will respond by locking your machine. Also 0x320 is bad
  2991.   because SCSI drivers probe into 0x330.
  2992.  
  2993.   Donald has written a NE2000 diagnostic program (ne2k.c) for all ne2000
  2994.   cards.  See ``Diagnostic Programs'' for more information.
  2995.  
  2996.   If you intend on using this driver as a loadable module you should
  2997.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  2998.   Based Cards as Modules'' for module specific information.
  2999.  
  3000.   5.26.2.  NE2000-PCI (RealTek/Winbond/Compex)
  3001.  
  3002.   Status -- Supported
  3003.  
  3004.   Yes, believe it or not, people are making PCI cards based on the ten
  3005.   year old interface design of the ne2000. At the moment nearly all of
  3006.   these cards are based on the RealTek 8029 chip, or the Winbond 89c940
  3007.   chip. The Compex, KTI, VIA and Netvin cards apparently also use these
  3008.   chips, but have a different PCI ID.  The linux kernel v2.0.33 has
  3009.   support to automatically detect all these cards and use them. (If you
  3010.   are using a kernel v2.0.30 or older, you should upgrade to ensure your
  3011.   card will be detected.)
  3012.  
  3013.   Note that you have to say `Y'  to the `Other ISA cards' option when
  3014.   running make config as you are actually using the same NE2000 driver
  3015.   as the ISA cards use. (That should also give you a hint that these
  3016.   cards aren't anywhere as intelligent as say a DEC 21040 card...)  In
  3017.   the future, a PCI-only NE2000 driver will be included in the kernel
  3018.   source for these cards. The driver is currently available for testing
  3019.   at:
  3020.  
  3021.   http://cesdis.gsfc.nasa.gov/linux/drivers/ne2k-pci.html
  3022.  
  3023.   Some newer motherboards don't enable all the PCI cards at power-up,
  3024.   and this generally causes the card to be detected, but to fail the
  3025.   probe. Code to enable such cards is due to be added to the v2.0.34
  3026.   ne.c driver, based on that which is in the above PCI-only driver.
  3027.  
  3028.   If you have a NE2000 PCI card that is not  detected by the driver,
  3029.   please contact the maintainer of the NE2000 driver as listed in
  3030.   /usr/src/linux/MAINTAINERS along with the output from a cat /proc/pci
  3031.   and dmesg so that support for your card can also be added to the
  3032.   driver.
  3033.  
  3034.   5.26.3.  NE-10/100
  3035.  
  3036.   Status -- Not Supported
  3037.  
  3038.   These are ISA 100Mbps cards based on the National Semiconductor
  3039.   DP83800 and DP83840 chips. There is currently no driver support, nor
  3040.   has anyone reported that they are working on a driver.
  3041.  
  3042.   5.26.4.  NE1500, NE2100
  3043.  
  3044.   Status -- Supported
  3045.  
  3046.   These cards use the original 7990 LANCE chip from AMD and are
  3047.   supported using the Linux lance driver. Newer NE2100 clones use the
  3048.   updated PCnet/ISA chip from AMD.
  3049.  
  3050.   Some earlier versions of the lance driver had problems with getting
  3051.   the IRQ line via autoIRQ from the original Novell/Eagle 7990 cards.
  3052.   Hopefully this is now fixed.  If not, then specify the IRQ via LILO,
  3053.   and let us know that it still has problems.
  3054.  
  3055.   DMA selection and chip numbering information can be found in ``AMD
  3056.   LANCE''.
  3057.  
  3058.   More technical information on LANCE based cards can be found in
  3059.   ``Notes on AMD...''
  3060.  
  3061.   5.26.5.  NE3200
  3062.  
  3063.   Status -- Not Supported
  3064.  
  3065.   This card uses a lowly 8MHz 80186, and hence you are better off using
  3066.   a cheap NE2000 clone. Even if a driver was available, the NE2000 card
  3067.   would most likely be faster.
  3068.  
  3069.   5.26.6.  NE5500
  3070.  
  3071.   Status -- Supported
  3072.  
  3073.   These are just AMD PCnet-PCI cards ('970A) chips. More information on
  3074.   LANCE/PCnet based cards can be found in ``AMD LANCE''.
  3075.  
  3076.   5.27.  Proteon
  3077.  
  3078.   5.27.1.  Proteon P1370-EA
  3079.  
  3080.   Status -- Supported
  3081.  
  3082.   Apparently this is a NE2000 clone, and works fine with Linux.
  3083.  
  3084.   5.27.2.  Proteon P1670-EA
  3085.  
  3086.   Status -- Supported
  3087.  
  3088.   This is yet another PCI card that is based on DEC's Tulip chip.  It
  3089.   has been reported to work fine with Linux.
  3090.  
  3091.   See the section on the 21040 chip (``DEC 21040'') for more driver
  3092.   information.
  3093.  
  3094.   5.28.  Pure Data
  3095.  
  3096.   5.28.1.  PDUC8028, PDI8023
  3097.  
  3098.   Status -- Supported
  3099.  
  3100.   The PureData PDUC8028 and PDI8023 series of cards are reported to
  3101.   work, thanks to special probe code contributed by Mike Jagdis
  3102.   jaggy@purplet.demon.co.uk. The support is integrated with the WD
  3103.   driver.
  3104.  
  3105.   5.29.  Racal-Interlan
  3106.  
  3107.   Racal Interlan can be reached via WWW at www.interlan.com. I believe
  3108.   they were also known as MiCom-Interlan at one point in the past.
  3109.  
  3110.   5.29.1.  ES3210
  3111.  
  3112.   Status -- Semi-Supported
  3113.  
  3114.   This is an EISA 8390 based shared memory card. An experimetal driver
  3115.   for v2.0 is available (from me, pg). It is reported to work fine, but
  3116.   the EISA IRQ and shared memory address detection appears not to work
  3117.   with (at least) the early revision cards.  In that case, you have to
  3118.   supply them at boot; e.g. ether=5,0,0xd0000,eth0 for IRQ 5 and shared
  3119.   memory at 0xd0000. The i/o base is automatically detected and hence a
  3120.   value of zero should be used.
  3121.  
  3122.   This driver will appear in the v2.1 kernels at some time in the near
  3123.   future.
  3124.  
  3125.   5.29.2.  NI5010
  3126.  
  3127.   Status -- Semi-Supported
  3128.  
  3129.   This driver, by Jan-Pascal van Best (jvbest@qv3pluto.leidenuniv.nl)
  3130.   supports the old 8 bit MiCom-Interlan cards. You can get the driver
  3131.   from:
  3132.  
  3133.   NI5010 Driver
  3134.   <http://qv3pluto.leidenuniv.nl/jvbest/ni5010/ni5010.html>
  3135.  
  3136.   Jan-Pascal has got very little feedback on this driver and would
  3137.   appreciate it if you dropped him a note saying if it worked or not.
  3138.  
  3139.   5.29.3.  NI5210
  3140.  
  3141.   Status -- Semi-Supported
  3142.  
  3143.   Michael Hipp has written a driver for this card. It is included in the
  3144.   standard kernel as an `alpha' driver. Michael would like to hear
  3145.   feedback from users that have this card. See ``Alpha Drivers'' for
  3146.   important information on using alpha-test ethernet drivers with Linux.
  3147.  
  3148.   Michael says that ``the internal sysbus seems to be slow.  So we often
  3149.   lose packets because of overruns while receiving from a fast remote
  3150.   host.''
  3151.  
  3152.   This card also uses one of the Intel chips. See ``Programming the
  3153.   Intel Chips'' for more technical information.
  3154.  
  3155.   5.29.4.  NI6510 (not EB)
  3156.  
  3157.   Status -- Semi-Supported
  3158.  
  3159.   There is also a driver for the LANCE based NI6510, and it is also
  3160.   written by Michael Hipp. Again, it is also an `alpha' driver. For some
  3161.   reason, this card is not compatible with the generic LANCE driver. See
  3162.   ``Alpha Drivers'' for important information on using alpha-test
  3163.   ethernet drivers with Linux.
  3164.  
  3165.   5.29.5.  EtherBlaster (aka NI6510EB)
  3166.  
  3167.   Status -- Supported
  3168.  
  3169.   As of kernel 1.3.23, the generic LANCE driver had a check added to it
  3170.   for the 0x52, 0x44 NI6510EB specific signature.  Others have reported
  3171.   that this signature is not the same for all NI6510EB cards however,
  3172.   which will cause the lance driver to not detect your card. If this
  3173.   happens to you, you can change the probe (at about line 322 in
  3174.   lance.c) to printk() out what the values are for your card and then
  3175.   use them instead of the 0x52, 0x44 defaults.
  3176.  
  3177.   The cards should probably be run in `high-performance' mode and not in
  3178.   the NI6510 compatible mode when using the lance driver.
  3179.  
  3180.   5.30.  Sager
  3181.  
  3182.   5.30.1.  Sager NP943
  3183.  
  3184.   Status -- Semi-Supported
  3185.  
  3186.   This is just a 3c501 clone, with a different S.A. PROM prefix. I
  3187.   assume it is equally as brain dead as the original 3c501 as well.
  3188.   Kernels 1.1.53 and up check for the NP943 I.D. and then just treat it
  3189.   as a 3c501 after that. See ``3Com 3c501'' for all the reasons as to
  3190.   why you really don't want to use one of these cards.
  3191.  
  3192.   5.31.  Schneider & Koch
  3193.  
  3194.   5.31.1.  SK G16
  3195.  
  3196.   Status -- Supported
  3197.  
  3198.   This driver was included into the v1.1 kernels, and it was written by
  3199.   PJD Weichmann and SWS Bern. It appears that the SK G16 is similar to
  3200.   the NI6510, in that it is based on the first edition LANCE chip (the
  3201.   7990). Once again, it appears as though this card won't work with the
  3202.   generic LANCE driver.
  3203.  
  3204.   5.32.  SEEQ
  3205.  
  3206.   5.32.1.  SEEQ 8005
  3207.  
  3208.   Status -- Supported
  3209.  
  3210.   This driver was included into early 1.3.x kernels, and was written by
  3211.   Hamish Coleman.  There is little information about the card included
  3212.   in the driver, and hence little information to be put here. If you
  3213.   have a question, you are probably best off e-mailing
  3214.   hamish@zot.apana.org.au
  3215.  
  3216.   5.33.  SMC (Standard Microsystems Corp.)
  3217.  
  3218.   Please see ``Western Digital'' for information on SMC cards. (SMC
  3219.   bought out Western Digital's network card section quite a while ago.)
  3220.  
  3221.   5.34.  Thomas Conrad
  3222.  
  3223.   5.34.1.  Thomas Conrad TC-5048
  3224.  
  3225.   This is yet another PCI card that is based on DEC's 21040 chip.
  3226.  
  3227.   See the section on the 21040 chip (``DEC 21040'') for more
  3228.   information.
  3229.  
  3230.   5.35.  Western Digital / SMC
  3231.  
  3232.   The ethernet part of Western Digital has been bought out by SMC.  One
  3233.   common mistake people make is that the relatively new SMC Elite Ultra
  3234.   is the same as the older SMC Elite16 models -- this is not the case.
  3235.   They have separate drivers.
  3236.  
  3237.   Here is how to contact SMC (not that you should need to.)
  3238.  
  3239.        SMC / Standard Microsystems Corp., 80 Arkay Drive, Hauppage,
  3240.        New York, 11788, USA.
  3241.  
  3242.   Technical Support via phone:
  3243.  
  3244.           800-992-4762 (USA)
  3245.           800-433-5345 (Canada)
  3246.           516-435-6250 (Other Countries)
  3247.  
  3248.   Literature requests:
  3249.  
  3250.           800-SMC-4-YOU (USA)
  3251.           800-833-4-SMC (Canada)
  3252.           516-435-6255  (Other Countries)
  3253.  
  3254.   Technical Support via E-mail:
  3255.  
  3256.           techsupt@ccmail.west.smc.com
  3257.  
  3258.   FTP Site:
  3259.  
  3260.           ftp.smc.com
  3261.  
  3262.   WWW Site: SMC <http://www.smc.com>
  3263.  
  3264.   5.35.1.  WD8003, SMC Elite
  3265.  
  3266.   Status -- Supported
  3267.  
  3268.   These are the 8-bit versions of the card. The 8 bit 8003 is slightly
  3269.   less expensive, but only worth the savings for light use. Note that
  3270.   some of the non-EEPROM cards (clones with jumpers, or old old old
  3271.   wd8003 cards) have no way of reporting the IRQ line used. In this
  3272.   case, auto-irq is used, and if that fails, the driver silently assings
  3273.   IRQ 5.  You can get the SMC setup/driver disks from SMC's ftp site.
  3274.   Note that some of the newer SMC `SuperDisk' programs will fail to
  3275.   detect the real old EEPROM-less cards. The file SMCDSK46.EXE seems to
  3276.   be a good all-round choice. Also the jumper settings for all their
  3277.   cards are in an ascii text file in the aforementioned archive. The
  3278.   latest (greatest?) version can be obtained from ftp.smc.com.
  3279.  
  3280.   As these are basically the same as their 16 bit counterparts (WD8013 /
  3281.   SMC Elite16), you should see the next section for more information.
  3282.  
  3283.   5.35.2.  WD8013, SMC Elite16
  3284.  
  3285.   Status -- Supported
  3286.  
  3287.   Over the years the design has added more registers and an EEPROM. (The
  3288.   first wd8003 cards appeared about ten years ago!)  Clones usually go
  3289.   by the `8013' name, and usually use a non-EEPROM (jumpered) design.
  3290.   Late model SMC cards will have the SMC 83c690 chip instead of the
  3291.   original Nat Semi DP8390 found on earlier cards.  The shared memory
  3292.   design makes the cards a bit faster than PIO cards, especially with
  3293.   larger packets.  More importantly, from the driver's point of view, it
  3294.   avoids a few bugs in the programmed-I/O mode of the 8390, allows safe
  3295.   multi-threaded access to the packet buffer, and it doesn't have a
  3296.   programmed-I/O data register that hangs your machine during warm-boot
  3297.   probes.
  3298.  
  3299.   Non-EEPROM cards that can't just read the selected IRQ will attempt
  3300.   auto-irq, and if that fails, they will silently assign IRQ 10. (8 bit
  3301.   versions will assign IRQ 5)
  3302.  
  3303.   Cards with a non standard amount of memory on board can have the
  3304.   memory size specified at boot (or at `insmod' time if using modules).
  3305.   The standard memory size is 8kB for an 8bit card and 16kB for a 16bit
  3306.   card.  For example, the older WD8003EBT cards could be jumpered for
  3307.   32kB memory. To make full use of that RAM, you would use something
  3308.   like (for i/o=0x280 and IRQ 9):
  3309.  
  3310.   ______________________________________________________________________
  3311.           LILO: linux ether=9,0x280,0xd0000,0xd8000,eth0
  3312.   ______________________________________________________________________
  3313.  
  3314.   Also see ``8013 problems'' for some of the more common problems and
  3315.   frequently asked questions that pop up often.
  3316.  
  3317.   If you intend on using this driver as a loadable module you should
  3318.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  3319.   Based Cards as Modules'' for module specific information.
  3320.  
  3321.   5.35.3.  SMC Elite Ultra
  3322.  
  3323.   Status -- Supported
  3324.  
  3325.   This ethercard is based on a new chip from SMC, the 83c790, which has
  3326.   a few new features. While it has a mode that is similar to the older
  3327.   SMC ethercards, it's not entirely compatible with the old WD80*3
  3328.   drivers. However, in this mode it shares most of its code with the
  3329.   other 8390 drivers, while operating slightly faster than a WD8013
  3330.   clone.
  3331.  
  3332.   Since part of the Ultra looks like an 8013, the Ultra probe is
  3333.   supposed to find an Ultra before the wd8013 probe has a chance to
  3334.   mistakenly identify it.
  3335.  
  3336.   Donald mentioned that it is possible to write a separate driver for
  3337.   the Ultra's `Altego' mode which allows chaining transmits at the cost
  3338.   of inefficient use of receive buffers, but that will probably not
  3339.   happen.
  3340.  
  3341.   Bus-Master SCSI host adaptor users take note: In the manual that ships
  3342.   with Interactive UNIX, it mentions that a bug in the SMC Ultra will
  3343.   cause data corruption with SCSI disks being run from an aha-154X host
  3344.   adaptor.  This will probably bite aha-154X compatible cards, such as
  3345.   the BusLogic boards, and the AMI-FastDisk SCSI host adaptors as well.
  3346.  
  3347.   SMC has acknowledged the problem occurs with Interactive, and older
  3348.   Windows NT drivers. It is a hardware conflict with early revisions of
  3349.   the card that can be worked around in the driver design. The current
  3350.   Ultra driver protects against this by only enabling the shared memory
  3351.   during data transfers with the card. Make sure your kernel version is
  3352.   at least 1.1.84, or that the driver version reported at boot is at
  3353.   least smc-ultra.c:v1.12 otherwise you are vulnerable.
  3354.  
  3355.   If you intend on using this driver as a loadable module you should
  3356.   probably see ``Using the Ethernet Drivers as Modules'' and also ``8390
  3357.   Based Cards as Modules'' for module specific information.
  3358.   5.35.4.  SMC Elite Ultra32 EISA
  3359.  
  3360.   Status -- Semi-Supported
  3361.  
  3362.   This EISA card shares a lot in common with its ISA counterpart.  A
  3363.   working (and stable) driver is available for v2.0 kernels upon request
  3364.   from the author of this document. Thanks go to Leonard Zubkoff for
  3365.   purchasing some of these cards so that Leonard and myself could add
  3366.   linux support for them. The driver will be included with a future
  3367.   release of the v2.1.x linux kernel as well.
  3368.  
  3369.   5.35.5.  SMC EtherEZ (8416)
  3370.  
  3371.   Status -- Supported
  3372.  
  3373.   This card uses SMC's 83c795 chip and supports the Plug 'n Play
  3374.   specification. It also has an SMC Ultra compatible mode, which allows
  3375.   it to be used with the Linux Ultra driver.  Be sure to set your card
  3376.   for this compatibility mode.  See the above information for notes on
  3377.   the Ultra driver.
  3378.  
  3379.   For v1.2 kernels, the card had to be configured for shared memory
  3380.   operation. However v2.0 kernels can use the card in shared memory or
  3381.   programmed i/o mode. Shared memory mode will be slightly faster, and
  3382.   use considerably less CPU resources as well.
  3383.  
  3384.   Note that the EtherEZ specific checks were added to the SMC Ultra
  3385.   driver in 1.1.84, and hence earlier kernel versions will not detect or
  3386.   handle these cards correctly.
  3387.  
  3388.   5.35.6.  SMC EtherPower PCI (8432)
  3389.  
  3390.   Status -- Supported
  3391.  
  3392.   NB: The EtherPower II is an entirely different card. See below!  These
  3393.   cards are a basic DEC 21040 implementation, i.e. one big chip and a
  3394.   couple of transceivers. Donald has used one of these cards for his
  3395.   development of the generic 21040 driver (aka tulip.c). Thanks to Duke
  3396.   Kamstra, once again, for supplying a card to do development on.
  3397.  
  3398.   Some of the later revisons of this card use the newer DEC 21041 chip,
  3399.   which may cause problems with older versions of the tulip driver. If
  3400.   you have problems, make sure you are using the latest driver release,
  3401.   which may not yet be included in the current kernel source tree.
  3402.  
  3403.   See ``DEC 21040'' for more details on using one of these cards, and
  3404.   the current status of the driver.
  3405.  
  3406.   Apparently, the latest revision of the card, the EtherPower-II uses
  3407.   the 9432 chip. It is unclear at the moment if this one will work with
  3408.   the present driver. As always, if unsure, check that you can return
  3409.   the card if it doesn't work with the linux driver before paying for
  3410.   the card.
  3411.  
  3412.   5.35.7.  SMC EtherPower II PCI (9432)
  3413.  
  3414.   Status -- Semi-Supported
  3415.  
  3416.   These cards, based upon the SMC 83c170 chip, are entirely different
  3417.   than the Tulip based cards. A new alpha-test driver named epic100.c is
  3418.   due to be included in kernel v2.0.34 to support these cards. For more
  3419.   details, see:
  3420.  
  3421.   http://cesdis.gsfc.nasa.gov/linux/drivers/epic100.html
  3422.  
  3423.   5.35.8.  SMC 3008
  3424.  
  3425.   Status -- Not Supported
  3426.  
  3427.   These 8 bit cards are based on the Fujitsu MB86950, which is an
  3428.   ancient version of the MB86965 used in the Linux at1700 driver. Russ
  3429.   says that you could probably hack up a driver by looking at the
  3430.   at1700.c code and his DOS packet driver for the Tiara card
  3431.   (tiara.asm). They are not very common.
  3432.  
  3433.   5.35.9.  SMC 3016
  3434.  
  3435.   Status -- Not Supported
  3436.  
  3437.   These are 16bit i/o mapped 8390 cards, much similar to a generic
  3438.   NE2000 card. If you can get the specifications from SMC, then porting
  3439.   the NE2000 driver would probably be quite easy.  They are not very
  3440.   common.
  3441.  
  3442.   5.35.10.  SMC-9000 / SMC 91c92/4
  3443.  
  3444.   Status -- Supported
  3445.  
  3446.   The SMC9000 is a VLB card based on the 91c92 chip.  The 91c92 appears
  3447.   on a few other brand cards as well, but is fairly uncommon.  Erik
  3448.   Stahlman (erik@vt.edu) has written this driver which is in v2.0
  3449.   kernels, but not in the older v1.2 kernels. You may be able to drop
  3450.   the driver into a v1.2 kernel source tree with minimal difficulty.
  3451.  
  3452.   5.35.11.  SMC 91c100
  3453.  
  3454.   Status -- Semi-Supported
  3455.  
  3456.   The SMC 91c92 driver is supposed to work for cards based on this
  3457.   100Base-T chip, but at the moment this is unverified.
  3458.  
  3459.   5.36.  Xircom
  3460.  
  3461.   For the longest time, Xircom wouldn't release the programming
  3462.   information required to write a driver, unless you signed your life
  3463.   away. Apparently enough linux users have pestered them for driver
  3464.   support (they claim to support all popular networking operating
  3465.   systems...) so that they have changed their policy to allow
  3466.   documentation to be released without having to sign a non-disclosure
  3467.   agreement, and apparently they will release the source code to the SCO
  3468.   driver as well.  If you want to verify that this is the case, you can
  3469.   reach Xircom at 1-800-874-7875, 1-800-438-4526 or +1-818-878-7600.
  3470.  
  3471.   However, at the moment nobody has rushed forth offering to write any
  3472.   drivers, so all their products are still unsupported.
  3473.  
  3474.   5.36.1.  PE1, PE2, PE3-10B*
  3475.  
  3476.   Status -- Not Supported
  3477.  
  3478.   Not to get your hopes up, but if you have one of these parallel port
  3479.   adaptors, you may be able to use it in the DOS emulator with the
  3480.   Xircom-supplied DOS drivers. You will have to allow DOSEMU access to
  3481.   your parallel port, and will probably have to play with SIG (DOSEMU's
  3482.   Silly Interrupt Generator).
  3483.  
  3484.   5.37.  Zenith
  3485.  
  3486.   5.37.1.  Z-Note
  3487.  
  3488.   Status -- Supported
  3489.  
  3490.   The built-in Z-Note network adaptor is based on the Intel i82593 using
  3491.   two DMA channels. There is an (alpha?) driver available in the present
  3492.   kernel version. As with all notebook and pocket adaptors, it is under
  3493.   the `Pocket and portable adaptors' section when running make config.
  3494.   See ``Programming the Intel chips'' for more technical information.
  3495.   Also note that the IBM ThinkPad 300 is compatible with the Z-Note.
  3496.  
  3497.   5.38.  Znyx
  3498.  
  3499.   5.38.1.  Znyx ZX342 (DEC 21040 based)
  3500.  
  3501.   Status -- Supported
  3502.  
  3503.   You have a choice of two drivers for cards based on this chip. There
  3504.   is the DE425 driver written by David, and the generic 21040 driver
  3505.   that Donald has written.
  3506.  
  3507.   Note that as of 1.1.91, David has added a compile time option that may
  3508.   allow non-DEC cards (such as the Znyx cards) to work with this driver.
  3509.   Have a look at README.de4x5 for details.
  3510.  
  3511.   See ``DEC 21040'' for more information on these cards, and the present
  3512.   driver situation.
  3513.  
  3514.   5.39.  Identifying an Unknown Card
  3515.  
  3516.   Okay, so your uncle's cousin's neighbour's friend had a brother who
  3517.   found an old ISA ethernet card in the AT case he was using as a cage
  3518.   for his son's pet hampster. Somehow you ended up with the card and
  3519.   want to try and use it with linux, but nobody has a clue what the card
  3520.   is and there isn't any documentation.
  3521.  
  3522.   First of all, look for any obvious model numbers that might give a
  3523.   clue. Any model number that contains 2000 will most likely be a NE2000
  3524.   clone. Any cards with 8003 or 8013 on them somewhere will be
  3525.   Western/Digital WD80x3 cards or SMC Elite cards or clones of them.
  3526.  
  3527.   5.39.1.  Identifying the Network Interface Controller
  3528.  
  3529.   Look for the biggest chip on the card. This will be the network
  3530.   controller (NIC) itself, and most can be identified by the part
  3531.   number. If you know which NIC is on the card, the following might be
  3532.   able to help you figure out what card it is.
  3533.  
  3534.   Probably still the most common NIC is the National Semiconductor
  3535.   DP8390 aka NS32490 aka DP83901 aka DP83902 aka DP83905 aka DP83907.
  3536.   And those are just the ones made by National! Other companies such as
  3537.   Winbond and UMC make DP8390 and DP83905 clone parts, such as the
  3538.   Winbond 89c904 (DP83905 clone) and the UMC 9090.  If the card has some
  3539.   form of 8390 on it, then chances are it is a ne1000 or ne2000 clone
  3540.   card. The second most common 8390 based card are wd80x3 cards and
  3541.   clones. Cards with a DP83905 can be configured to be an ne2000 or a
  3542.   wd8013. Never versions of the genuine wd80x3 and SMC Elite cards have
  3543.   an 83c690 in place of the original DP8390. The SMC Ultra cards have an
  3544.   83c790, and use a slightly different driver than the wd80x3 cards.
  3545.   The SMC EtherEZ cards have an 83c795, and use the same driver as the
  3546.   SMC Ultra. All BNC cards based on some sort of 8390 or 8390 clone will
  3547.   usually have an 8392 (or 83c692, or XXX392) 16 pin DIP chip very close
  3548.   to the BNC connector.
  3549.  
  3550.   Another common NIC found on older cards is the Intel i82586.  Cards
  3551.   having this NIC include the 3c505, 3c507, 3c523, Intel EtherExpress-
  3552.   ISA, Microdyne Exos-205T, and the Racal-Interlan NI5210.
  3553.  
  3554.   The original AMD LANCE NIC was numbered AM7990, and newer revisions
  3555.   include the 79c960, 79c961, 79c965, 79c970, and 79c974.  Most cards
  3556.   with one of the above will work with the Linux LANCE driver, with the
  3557.   exception of the old Racal-Interlan NI6510 cards that have their own
  3558.   driver.
  3559.  
  3560.   Newer PCI cards having a DEC 21040, 21041, 21140, or similar number on
  3561.   the NIC should be able to use the linux tulip or de4x5 driver.
  3562.  
  3563.   Other PCI cards having a big chip marked RTL8029 are ne2000 clone
  3564.   cards, and the ne driver in linux version v2.0 and up should
  3565.   automatically detect these cards at boot.
  3566.  
  3567.   5.39.2.  Identifying the Ethernet Address
  3568.  
  3569.   Each ethernet card has its own six byte address that is unique to that
  3570.   card. The first three bytes of that address are the same for each card
  3571.   made by that particular manufacturer.  For example all SMC cards start
  3572.   with 00:00:c0.  The last three are assigned by the manufacturer
  3573.   uniquely to each individual card as they are produced.
  3574.  
  3575.   If your card has a sticker on it giving all six bits of its address,
  3576.   you can look up the vendor from the first three.  However it is more
  3577.   common to see only the last three bytes printed onto a sticker
  3578.   attached to a socketed PROM, which tells you nothing.
  3579.  
  3580.   You can determine which vendors have which assigned addresses from
  3581.   RFC-1340. Apparently there is a more up to date listing available in
  3582.   various places as well. Try a WWW or FTP search for EtherNet-codes or
  3583.   Ethernet-codes and you will find something.
  3584.  
  3585.   5.39.3.  Tips on Trying to Use an Unknown Card
  3586.  
  3587.   If you are still not sure what the card is, but have at least narrowed
  3588.   it down some, then you can build a kernel with a whole bunch of
  3589.   drivers included, and see if any of them autodetect the card at boot.
  3590.  
  3591.   If the kernel doesn't detect the card, it may be that the card is not
  3592.   configured to one of the addresses that the driver probes when looking
  3593.   for a card. In this case, you might want to try getting
  3594.   scanport.tar.gz from your local linux ftp site, and see if that can
  3595.   locate where your card is jumpered for. It scans ISA i/o space from
  3596.   0x100 to 0x3ff looking for devices that aren't registered in
  3597.   /proc/ioports. If it finds an unknown device starting at some
  3598.   particular address, you can then explicity point the ethernet probes
  3599.   at that address with an ether= boot argument.
  3600.  
  3601.   If you manage to get the card detected, you can then usually figure
  3602.   out the unknown jumpers by changing them one at a time and seeing at
  3603.   what i/o base and IRQ that the card is detected at. The IRQ settings
  3604.   can also usually be determined by following the traces on the back of
  3605.   the card to where the jumpers are soldered through. Counting the `gold
  3606.   fingers' on the backside, from the end of the card with the metal
  3607.   bracket, you have IRQ 9, 7, 6, 5, 4, 3, 10, 11, 12, 15, 14 at fingers
  3608.   4, 21, 22, 23, 24, 25, 34, 35, 36, 37, 38 respectively.  Eight bit
  3609.   cards only have up to finger 31.
  3610.  
  3611.   Jumpers that appear to do nothing usually are for selecting the memory
  3612.   address of an optional boot ROM. Other jumpers that are located near
  3613.   the BNC or RJ-45 or AUI connectors are usually to select the output
  3614.   media. These are also typically near the `black box' voltage
  3615.   converters marked YCL, Valor, or Fil-Mag.
  3616.  
  3617.   A nice collection of jumper settings for various cards can be found at
  3618.   the following URL: Ethercard Settings
  3619.   <http://www.syd.dit.csiro.au/staff/ken/personal/NIC/>
  3620.  
  3621.   5.40.  Drivers for Non-Ethernet Devices
  3622.  
  3623.   There are a few other drivers that are in the linux source that
  3624.   present an ethernet-like device to network programs, while not really
  3625.   being ethernet. These are briefly listed here for completeness.
  3626.  
  3627.   dummy.c - The purpose of this driver is to provide a device to point a
  3628.   route through, but not to actually transmit packets.
  3629.  
  3630.   eql.c - Load Equalizer, enslaves multiple devices (usually modems) and
  3631.   balances the Tx load across them while presenting a single device to
  3632.   the network programs.
  3633.  
  3634.   ibmtr.c - IBM Token Ring, which is not really ethernet.  Broken-Ring
  3635.   requires source routing and other uglies.
  3636.  
  3637.   loopback.c - Loopback device, for which all packets from you machine
  3638.   and destined for your own machine go.  It essentially just moves the
  3639.   packet off the Tx queue and onto the Rx queue.
  3640.  
  3641.   pi2.c - Ottawa Amateur Radio Club PI and PI2 interface.
  3642.  
  3643.   plip.c - Parallel Line Internet Protocol, allows two computers to send
  3644.   packets to each other over two joined parallel ports in a point-to-
  3645.   point fashion.
  3646.  
  3647.   ppp.c - Point-to-Point Protocol (RFC1331), for the Transmission of
  3648.   Multi-protocol Datagrams over a Point-to-Point Link (again usually
  3649.   modems).
  3650.  
  3651.   slip.c - Serial Line Internet Protocol, allows two computers to send
  3652.   packets to each other over two joined serial ports (usually via
  3653.   modems) in a point-to-point fashion.
  3654.  
  3655.   tunnel.c - Provides an IP tunnel through which you can tunnel network
  3656.   traffic transparently across subnets
  3657.  
  3658.   wavelan.c - An Ethernet-like radio transceiver controlled by the Intel
  3659.   82586 coprocessor which is used on other ethercards such as the Intel
  3660.   EtherExpress.
  3661.  
  3662.   6.  Cables, Coax, Twisted Pair
  3663.  
  3664.   If you are starting a network from scratch, it's considerably less
  3665.   expensive to use thin ethernet, RG58 co-ax cable with BNC connectors,
  3666.   than old-fashioned thick ethernet, RG-5 cable with N connectors, or
  3667.   10baseT, twisted pair telco-style cables with RJ-45 eight wire `phone'
  3668.   connectors. See ``Type of cable...'' for an introductory look at
  3669.   cables.
  3670.  
  3671.   Also note that the FAQ from comp.dcom.lans.ethernet has a lot of
  3672.   useful information on cables and such. Look in Usenet FAQs
  3673.   <ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/> for the FAQ for that
  3674.   newsgroup.
  3675.  
  3676.   6.1.  Thin Ethernet (thinnet)
  3677.  
  3678.   Thin ethernet is the `ether of choice'. The cable is inexpensive. If
  3679.   you are making your own cables solid-core RG58A is $0.27/m. and
  3680.   stranded RG58AU is $0.45/m. Twist-on BNC connectors are < $2 ea., and
  3681.   other misc. pieces are similarly inexpensive. It is essential that you
  3682.   properly terminate each end of the cable with 50 ohm terminators, so
  3683.   budget $2 ea. for a pair. It's also vital that your cable have no
  3684.   `stubs' -- the `T' connectors must be attached directly to the
  3685.   ethercards.
  3686.  
  3687.   The only drawback is that if you have a big loop of machines connected
  3688.   together, and some bonehead breaks the loop by taking one cable off
  3689.   the side of his tee, the whole network goes down because it sees an
  3690.   infinite impedance (open circuit) instead of the required 50 ohm
  3691.   termination. Note that you can remove the tee piece from the card
  3692.   itself without killing the whole subnet, as long as you don't remove
  3693.   the cables from the tee itself. Of course this will disturb the
  3694.   machine that you pull the actual tee off of. 8-) And if you are doing
  3695.   a small network of two machines, you still need the tees and the 50
  3696.   ohm terminators -- you can't just cable them together!
  3697.  
  3698.   Note that there are a few cards out there with `on-board termination'.
  3699.   These cards have a jumper which when closed, puts a 50 ohm resistor
  3700.   across the BNC input. With these cards, you can use a BNC T and
  3701.   terminator like normal, or put the cable directly onto the card and
  3702.   close the jumper to enable the on-board termination.
  3703.  
  3704.   There are also some fancy cable systems which look like a single lead
  3705.   going to the card, but the lead is actually a loop, with the two runs
  3706.   of cable laying side-by-side covered by an outer sheath, giving the
  3707.   lead an oval shaped cross-section. At the turnaround point of the
  3708.   loop, a BNC connector is spliced in which connects to your card. So
  3709.   you have the equivalent of two runs of cable and a BNC T, but in this
  3710.   case, it is impossible for the user to remove a cable from one side of
  3711.   the T and disturb the network.
  3712.  
  3713.   6.2.  Twisted Pair
  3714.  
  3715.   Twisted pair networks require active hubs, which start around $200,
  3716.   and the raw cable cost can actually be higher than thinnet. They are
  3717.   usually sold using the claim that you can use your existing telephone
  3718.   wiring, but it's a rare installation where that turns out to be the
  3719.   case. The claim that you can upgrade to higher speeds is also suspect,
  3720.   as most proposed schemes use higher-grade (read $$) cable and more
  3721.   sophisticated termination ($$$) than you would likely install on
  3722.   speculation.
  3723.  
  3724.   New gizmos are floating around which allow you to daisy-chain machines
  3725.   together, and the like. For example, Farallon sells EtherWave adaptors
  3726.   and transceivers. This device allows multiple 10baseT devices to be
  3727.   daisy-chained. They also sell a 3c509 clone that includes the
  3728.   EtherWave transceiver.  The drawback is that it's more expensive and
  3729.   less reliable than a cheap ($100-$150) mini-hub and another ethercard.
  3730.   You probably should either go for the hub approach or switch over to
  3731.   10base2 thinnet.
  3732.  
  3733.   On the other hand, hubs are rapidly dropping in price, all 100Mb/sec
  3734.   ethernet proposals use twisted pair, and most new business
  3735.   installations use twisted pair. (This is probably to avoid the problem
  3736.   with idiots messing with the BNC's as described above.)
  3737.  
  3738.   Also, Russ Nelson adds that `New installations should use Category 5
  3739.   wiring. Anything else is a waste of your installer's time, as 100Base-
  3740.   whatever is going to require Cat 5.'
  3741.  
  3742.   If you are only connecting two machines, it is possible to avoid using
  3743.   a hub, by swapping the Rx and Tx pairs (1-2 and 3-6).
  3744.  
  3745.   If you hold the RJ-45 connector facing you (as if you were going to
  3746.   plug it into your mouth) with the lock tab on the top, then the pins
  3747.   are numbered 1 to 8 from left to right. The pin usage is as follows:
  3748.  
  3749.           Pin Number              Assignment
  3750.           ----------              ----------
  3751.           1                       Output Data (+)
  3752.           2                       Output Data (-)
  3753.           3                       Input Data (+)
  3754.           4                       Reserved for Telephone use
  3755.           5                       Reserved for Telephone use
  3756.           6                       Input Data (-)
  3757.           7                       Reserved for Telephone use
  3758.           8                       Reserved for Telephone use
  3759.  
  3760.   If you want to make a cable, the following should spell it out for
  3761.   you.  Differential signal pairs must be on the same twisted pair to
  3762.   get the required minimal impedance/loss of a UTP cable.  If you look
  3763.   at the above table, you will see that 1+2 and 3+6 are the two sets of
  3764.   differential signal pairs. Not 1+3 and 2+6 !!!!!!  At 10MHz, with
  3765.   short lengths, you *may* get away with such errors, if it is only over
  3766.   a short length. Don't even think about it at 100MHz.
  3767.  
  3768.   For a normal patch cord, with ends `A' and `B', you want straight
  3769.   through pin-to-pin mapping, with the input and output each using a
  3770.   pair of twisted wires (for impedance issues). That means 1A goes to
  3771.   1B, 2A goes to 2B, 3A goes to 3B and 6A goes to 6B. The wires joining
  3772.   1A-1B and 2A-2B must be a twisted pair. Also the wires joining 3A-3B
  3773.   and 6A-6B must be another twisted pair.
  3774.  
  3775.   Now if you don't have a hub, and want to make a `null cable', what you
  3776.   want to do is make the input of `A' be the output of `B' and the
  3777.   output of `A' be the input of `B', without changing the polarity.  Tha
  3778.   means connecting 1A to 3B (out+ A to in+ B) and 2A to 6B (out- A to
  3779.   in- B). These two wires must be a twisted pair. They carry what
  3780.   card/plug `A' considers output, and what is seen as input for
  3781.   card/plug `B'. Then connect 3A to 1B (in+ A to out+ B) and also
  3782.   connect 6A to 2B (in- A to out- B). These second two must also be a
  3783.   twisted pair. They carry what card/plug `A' considers input, and what
  3784.   card/plug `B' considers output.
  3785.  
  3786.   So, if you consider a normal patch cord, chop one end off of it, swap
  3787.   the places of the Rx and Tx twisted pairs into the new plug, and crimp
  3788.   it down, you then have a `null' cable. Nothing complicated.  You just
  3789.   want to feed the Tx signal of one card into the Rx of the second and
  3790.   vice versa.
  3791.  
  3792.   Note that before 10BaseT was ratified as a standard, there existed
  3793.   other network formats using RJ-45 connectors, and the same wiring
  3794.   scheme as above. Examples are SynOptics's LattisNet, and AT&T's
  3795.   StarLAN.  In some cases, (as with early 3C503 cards) you could set
  3796.   jumpers to get the card to talk to hubs of different types, but in
  3797.   most cases cards designed for these older types of networks will not
  3798.   work with standard 10BaseT networks/hubs. (Note that if the cards also
  3799.   have an AUI port, then there is no reason as to why you can't use
  3800.   that, combined with an AUI to 10BaseT transceiver.)
  3801.  
  3802.   6.3.  Thick Ethernet
  3803.  
  3804.   Thick ethernet is mostly obsolete, and is usually used only to remain
  3805.   compatible with an existing implementation. You can stretch the rules
  3806.   and connect short spans of thick and thin ethernet together with a
  3807.   passive $3 N-to-BNC connector, and that's often the best solution to
  3808.   expanding an existing thicknet. A correct (but expensive) solution is
  3809.   to use a repeater in this case.
  3810.  
  3811.   7.  Software Configuration and Card Diagnostics
  3812.  
  3813.   In most cases, if the configuration is done by software, and stored in
  3814.   an EEPROM, you will usually have to boot DOS, and use the supplied DOS
  3815.   program to set the cards IRQ, I/O, mem_addr and whatnot. Besides,
  3816.   hopefully it is something you will only be setting once. If you don't
  3817.   have the DOS software for your card, try looking on the WWW site of
  3818.   your card manufacturer. If you don't know the site name, take a guess
  3819.   at it, i.e. `www.my_vendor.com' where `my_vendor' is the name of your
  3820.   card manufacturer. This works for SMC, 3Com, and many many other
  3821.   manufacturers.
  3822.  
  3823.   There are some cards for which Linux versions of the config utils
  3824.   exist, and they are listed here.  Donald has written a few small card
  3825.   diagnostic programs that run under Linux. Most of these are a result
  3826.   of debugging tools that he has created while writing the various
  3827.   drivers. Don't expect fancy menu-driven interfaces. You will have to
  3828.   read the source code to use most of these. Even if your particular
  3829.   card doesn't have a corresponding diagnostic, you can still get some
  3830.   information just by typing cat /proc/net/dev -- assuming that your
  3831.   card was at least detected at boot.
  3832.  
  3833.   In either case, you will have to run most of these programs as root
  3834.   (to allow I/O to the ports) and you probably want to shut down the
  3835.   ethercard before doing so by typing ifconfig eth0 down (Note: replace
  3836.   eth0 with atp0 or whatever when appropriate.)
  3837.  
  3838.   7.1.  Configuration Programs for Ethernet Cards
  3839.  
  3840.   7.1.1.  WD80x3 Cards
  3841.  
  3842.   For people with wd80x3 cards, there is the program wdsetup which can
  3843.   be found in wdsetup-0.6a.tar.gz on Linux ftp sites.  I am not sure if
  3844.   it is being actively maintained or not, as it has not been updated for
  3845.   quite a while. If it works fine for you then great, if not, use the
  3846.   DOS version that you should have got with your card. If you don't have
  3847.   the DOS version, you will be glad to know that the SMC setup/driver
  3848.   disks are available at SMC's ftp site.  Of course, you have to have an
  3849.   EEPROM card to use this utility.  Old, old wd8003 cards, and some
  3850.   wd8013 clones use jumpers to set up the card instead.
  3851.  
  3852.   7.1.2.  Digital / DEC Cards
  3853.  
  3854.   The Digital EtherWorks 3 card can be configured in a similar fashion
  3855.   to the DOS program NICSETUP.EXE. David C. Davies wrote this and other
  3856.   tools for the EtherWorks 3 in conjunction with the driver. Look on
  3857.   sunsite.unc.edu in the directory /pub/linux/system/Network/management
  3858.   for the file that is named ewrk3tools-X.XX.tar.gz.
  3859.  
  3860.   7.1.3.  NE2000+ or AT/LANTIC Cards
  3861.  
  3862.   Some Nat Semi DP83905 implementations (such as the AT/LANTIC and the
  3863.   NE2000+) are software configurable. (Note that these cards can also
  3864.   emulate a wd8013 card!) You can get the file
  3865.   /pub/linux/setup/atlantic.c from Donald's ftp server,
  3866.   cesdis.gsfc.nasa.gov to configure this card.  In addition, the
  3867.   configuration programs for the Kingston DP83905 cards seem to work
  3868.   with all cards, as they don't check for a vendor specific address
  3869.   before allowing you to use them. Follow the following URL: Kingston
  3870.   Software <http://www.kingston.com/download/etherx/etherx.htm> and get
  3871.   20XX12.EXE and INFOSET.EXE.
  3872.  
  3873.   Be careful when configuring NE2000+ cards, as you can give them bad
  3874.   setting values which can cause problems. A typical example is
  3875.   accidentally enabling the boot ROM in the EEPROM (even if no ROM is
  3876.   installed) to a setting that conflicts with the VGA card. The result
  3877.   is a computer that just beeps at you (AMI beep eight times for VGA
  3878.   failure) when you turn it on and nothing appears on the screen.
  3879.  
  3880.   You can typically recover from this by doing the following: Remove the
  3881.   card from the machine, and then boot and enter the CMOS setup.  Change
  3882.   the `Display Adapter' to `Not Installed' and change the default boot
  3883.   drive to `A:' (your floppy drive).  Also change the `Wait for F1 if
  3884.   any Error' to `Disabled'.  This way, the computer should boot without
  3885.   user intervention.  Now create a bootable DOS floppy (`format a: /s
  3886.   /u') and copy the program default.exe from the 20XX12.EXE archive
  3887.   above onto that floppy. Then type echo default > a:autoexec.bat so
  3888.   that the program to set the card back to sane defaults will be run
  3889.   automatically when you boot from this floppy.  Shut the machine off,
  3890.   re-install the ne2000+ card, insert your new boot floppy, and power it
  3891.   back up. It will still probably beep at you, but eventually you should
  3892.   see the floppy light come on as it boots from the floppy. Wait a
  3893.   minute or two for the floppy to stop, indicating that it has finished
  3894.   running the default.exe program, and then power down your computer.
  3895.   When you then turn it on again, you should hopefully have a working
  3896.   display again, allowing you to change your CMOS settings back, and to
  3897.   change the card's EEPROM settings back to the values you want.
  3898.  
  3899.   Note that if you don't have DOS handy, you can do the whole method
  3900.   above with a linux boot disk that automatically runs Donald's atlantic
  3901.   program (with the right command line switches) instead of a DOS boot
  3902.   disk that automatically runs the default.exe program.
  3903.  
  3904.   7.1.4.  3Com Cards
  3905.  
  3906.   The 3Com Etherlink III family of cards (i.e. 3c5x9) can be configured
  3907.   by using another config utility from Donald.  You can get the file
  3908.   /pub/linux/setup/3c5x9setup.c from Donald's ftp server,
  3909.   cesdis.gsfc.nasa.gov to configure these cards. (Note that the DOS
  3910.   3c5x9B config utility may have more options pertaining to the new
  3911.   ``B'' series of the Etherlink III family.)
  3912.  
  3913.   7.2.  Diagnostic Programs for Ethernet Cards
  3914.  
  3915.   Any of the diagnostic programs that Donald has written can be obtained
  3916.   from this URL.
  3917.  
  3918.   Ethercard Diagnostics
  3919.   <http://cesdis.gsfc.nasa.gov/pub/linux/diag/diagnostic.html>
  3920.  
  3921.   Allied Telesis AT1700 -- look for the file /pub/linux/diag/at1700.c on
  3922.   cesdis.gsfc.nasa.gov.
  3923.  
  3924.   Cabletron E21XX -- look for the file /pub/linux/diag/e21.c on
  3925.   cesdis.gsfc.nasa.gov.
  3926.  
  3927.   HP PCLAN+ -- look for the file /pub/linux/diag/hp+.c on
  3928.   cesdis.gsfc.nasa.gov.
  3929.  
  3930.   Intel EtherExpress -- look for the file /pub/linux/diag/eexpress.c on
  3931.   cesdis.gsfc.nasa.gov.
  3932.  
  3933.   NE2000 cards -- look for the file /pub/linux/diag/ne2k.c on
  3934.   cesdis.gsfc.nasa.gov.  There is also a PCI version for the now common
  3935.   NE2000-PCI clones.
  3936.  
  3937.   RealTek (ATP) Pocket adaptor -- look for the file /pub/linux/diag/atp-
  3938.   diag.c on cesdis.gsfc.nasa.gov.
  3939.  
  3940.   All Other Cards -- try typing cat /proc/net/dev and dmesg to see what
  3941.   useful info the kernel has on the card in question.
  3942.  
  3943.   8.  Technical Information
  3944.  
  3945.   For those who want to play with the present drivers, or try to make up
  3946.   their own driver for a card that is presently unsupported, this
  3947.   information should be useful. If you do not fall into this category,
  3948.   then perhaps you will want to skip this section.
  3949.   8.1.  Probed Addresses
  3950.  
  3951.   While trying to determine what ethernet card is there, the following
  3952.   addresses are autoprobed, assuming the type and specs of the card have
  3953.   not been set in the kernel. The file names below are in
  3954.   /usr/src/linux/drivers/net/
  3955.  
  3956.   ______________________________________________________________________
  3957.           3c501.c         0x280, 0x300
  3958.           3c503.c:        0x300, 0x310, 0x330, 0x350, 0x250, 0x280, 0x2a0, 0x2e0
  3959.           3c505.c:        0x300, 0x280, 0x310
  3960.           3c507.c:        0x300, 0x320, 0x340, 0x280
  3961.           3c509.c:        Special ID Port probe
  3962.           apricot.c       0x300
  3963.           at1700.c:       0x300, 0x280, 0x380, 0x320, 0x340, 0x260, 0x2a0, 0x240
  3964.           atp.c:          0x378, 0x278, 0x3bc
  3965.           depca.c         0x300, 0x200
  3966.           de600.c:        0x378
  3967.           de620.c:        0x378
  3968.           eexpress.c:     0x300, 0x270, 0x320, 0x340
  3969.           hp.c:           0x300, 0x320, 0x340, 0x280, 0x2C0, 0x200, 0x240
  3970.           hp-plus.c       0x200, 0x240, 0x280, 0x2C0, 0x300, 0x320, 0x340
  3971.           lance.c:        0x300, 0x320, 0x340, 0x360
  3972.           ne.c:           0x300, 0x280, 0x320, 0x340, 0x360
  3973.           ni52.c          0x300, 0x280, 0x360, 0x320, 0x340
  3974.           ni65.c          0x300, 0x320, 0x340, 0x360
  3975.           smc-ultra.c:    0x200, 0x220, 0x240, 0x280, 0x300, 0x340, 0x380
  3976.           wd.c:           0x300, 0x280, 0x380, 0x240
  3977.   ______________________________________________________________________
  3978.  
  3979.   There are some NE2000 clone ethercards out there that are waiting
  3980.   black holes for autoprobe drivers. While many NE2000 clones are safe
  3981.   until they are enabled, some can't be reset to a safe mode.  These
  3982.   dangerous ethercards will hang any I/O access to their `dataports'.
  3983.   The typical dangerous locations are:
  3984.  
  3985.   ______________________________________________________________________
  3986.           Ethercard jumpered base     Dangerous locations (base + 0x10 - 0x1f)
  3987.                   0x300 *                         0x310-0x317
  3988.                   0x320                           0x330-0x337
  3989.                   0x340                           0x350-0x357
  3990.                   0x360                           0x370-0x377
  3991.   ______________________________________________________________________
  3992.  
  3993.   * The 0x300 location is the traditional place to put an ethercard, but
  3994.   it's also a popular place to put other devices (often SCSI
  3995.   controllers). The 0x320 location is often the next one chosen, but
  3996.   that's bad for for the AHA1542 driver probe. The 0x360 location is
  3997.   bad, because it conflicts with the parallel port at 0x378.  If you
  3998.   have two IDE controllers, or two floppy controlers, then 0x360 is also
  3999.   a bad choice, as a NE2000 card will clobber them as well.
  4000.  
  4001.   Note that kernels > 1.1.7X keep a log of who uses which i/o ports, and
  4002.   will not let a driver use i/o ports registered by an earlier driver.
  4003.   This may result in probes silently failing.  You can view who is using
  4004.   what i/o ports by typing cat /proc/ioports if you have the proc
  4005.   filesystem enabled.
  4006.  
  4007.   To avoid these lurking ethercards, here are the things you can do:
  4008.  
  4009.   ╖  Probe for the device's BIOS in memory space. This is easy and
  4010.      always safe, but it only works for cards that always have BIOSes,
  4011.      like primary SCSI controllers.
  4012.  
  4013.   ╖  Avoid probing any of the above locations until you think you've
  4014.      located your device. The NE2000 clones have a reset range from
  4015.      <base>+0x18 to <base>+0x1f that will read as 0xff, so probe there
  4016.      first if possible. It's also safe to probe in the 8390 space at
  4017.      <base>+0x00 - <base>+0x0f, but that area will return quasi-random
  4018.      values
  4019.  
  4020.   ╖  If you must probe in the dangerous range, for instance if your
  4021.      target device has only a few port locations, first check that there
  4022.      isn't an NE2000 there. You can see how to do this by looking at the
  4023.      probe code in /usr/src/linux/net/inet/ne.c
  4024.  
  4025.   ╖  Use the `reserve' boot time argument to protect volatile areas from
  4026.      being probed. See the information on using boot time arguments with
  4027.      LILO in ``The reserve command''
  4028.  
  4029.   8.2.  Writing a Driver
  4030.  
  4031.   The only thing that one needs to use an ethernet card with Linux is
  4032.   the appropriate driver. For this, it is essential that the
  4033.   manufacturer will release the technical programming information to the
  4034.   general public without you (or anyone) having to sign your life away.
  4035.   A good guide for the likelihood of getting documentation (or, if you
  4036.   aren't writing code, the likelihood that someone else will write that
  4037.   driver you really, really need) is the availability of the Crynwr (nee
  4038.   Clarkson) packet driver. Russ Nelson runs this operation, and has been
  4039.   very helpful in supporting the development of drivers for Linux. Net-
  4040.   surfers can try this URL to look up Russ' software.
  4041.  
  4042.   Russ Nelson's Packet Drivers <http://www.crynwr.com/crynwr/home.html>
  4043.  
  4044.   Given the documentation, you can write a driver for your card and use
  4045.   it for Linux (at least in theory).  Keep in mind that some old
  4046.   hardware that was designed for XT type machines will not function very
  4047.   well in a multitasking environment such as Linux. Use of these will
  4048.   lead to major problems if your network sees a reasonable amount of
  4049.   traffic.
  4050.  
  4051.   Most cards come with drivers for MS-DOS interfaces such as NDIS and
  4052.   ODI, but these are useless for Linux. Many people have suggested
  4053.   directly linking them in or automatic translation, but this is nearly
  4054.   impossible. The MS-DOS drivers expect to be in 16 bit mode and hook
  4055.   into `software interrupts', both incompatible with the Linux kernel.
  4056.   This incompatibility is actually a feature, as some Linux drivers are
  4057.   considerably better than their MS-DOS counterparts. The `8390' series
  4058.   drivers, for instance, use ping-pong transmit buffers, which are only
  4059.   now being introduced in the MS-DOS world.
  4060.  
  4061.   (Ping-pong Tx buffers means using at least 2 max-size packet buffers
  4062.   for Tx packets. One is loaded while the card is transmitting the
  4063.   other. The second is then sent as soon as the first finished, and so
  4064.   on. In this way, most cards are able to continuously send back-to-back
  4065.   packets onto the wire.)
  4066.  
  4067.   OK. So you have decided that you want to write a driver for the Foobar
  4068.   Ethernet card, as you have the programming information, and it hasn't
  4069.   been done yet. (...these are the two main requirements ;-) You should
  4070.   start with the skeleton network driver that is provided with the Linux
  4071.   kernel source tree. It can be found in the file
  4072.   /usr/src/linux/drivers/net/skeleton.c in all recent kernels.  Also
  4073.   have a look at the Kernel Hackers Guide, at the following URL: KHG
  4074.   <http://www.redhat.com:8080/HyperNews/get/khg.html>
  4075.  
  4076.   8.3.  Driver interface to the kernel
  4077.  
  4078.   Here are some notes on the functions that you would have to write if
  4079.   creating a new driver. Reading this in conjunction with the above
  4080.   skeleton driver may help clear things up.
  4081.  
  4082.   8.3.1.  Probe
  4083.  
  4084.   Called at boot to check for existence of card. Best if it can check
  4085.   un-obtrsively by reading from memory, etc. Can also read from i/o
  4086.   ports. Initial writing to i/o ports in a probe is not good as it may
  4087.   kill another device.  Some device initialization is usually done here
  4088.   (allocating i/o space, IRQs,filling in the dev->??? fields etc.)  You
  4089.   need to know what io ports/mem the card can be configured to, how to
  4090.   enable shared memory (if used) and how to select/enable interrupt
  4091.   generation, etc.
  4092.  
  4093.   8.3.2.  Interrupt handler
  4094.  
  4095.   Called by the kernel when the card posts an interrupt.  This has the
  4096.   job of determining why the card posted an interrupt, and acting
  4097.   accordingly. Usual interrupt conditions are data to be rec'd, transmit
  4098.   completed, error conditions being reported. You need to know any
  4099.   relevant interrupt status bits so that you can act accordingly.
  4100.  
  4101.   8.3.3.  Transmit function
  4102.  
  4103.   Linked to dev->hard_start_xmit() and is called by the kernel when
  4104.   there is some data that the kernel wants to put out over the device.
  4105.   This puts the data onto the card and triggers the transmit. You need
  4106.   to know how to bundle the data and how to get it onto the card (shared
  4107.   memory copy, PIO transfer, DMA?) and in the right place on the card.
  4108.   Then you need to know how to tell the card to send the data down the
  4109.   wire, and (possibly) post an interrupt when done.  When the hardware
  4110.   can't accept additional packets it should set the dev->tbusy flag.
  4111.   When additional room is available, usually during a transmit-complete
  4112.   interrupt, dev->tbusy should be cleared and the higher levels informed
  4113.   with mark_bh(INET_BH).
  4114.  
  4115.   8.3.4.  Receive function
  4116.  
  4117.   Called by the kernel interrupt handler when the card reports that
  4118.   there is data on the card. It pulls the data off the card, packages it
  4119.   into a sk_buff and lets the kernel know the data is there for it by
  4120.   doing a netif_rx(sk_buff). You need to know how to enable interrupt
  4121.   generation upon Rx of data, how to check any relevant Rx status bits,
  4122.   and how to get that data off the card (again sh mem, PIO, DMA, etc.)
  4123.  
  4124.   8.3.5.  Open function
  4125.  
  4126.   linked to dev->open and called by the networking layers when somebody
  4127.   does ifconfig eth0 up - this puts the device on line and enables it
  4128.   for Rx/Tx of data. Any special initialization incantations that were
  4129.   not done in the probe sequence (enabling IRQ generation, etc.)  would
  4130.   go in here.
  4131.  
  4132.   8.3.6.  Close function (optional)
  4133.  
  4134.   This puts the card in a sane state when someone does ifconfig eth0
  4135.   down.  It should free the IRQs and DMA channels if the hardware
  4136.   permits, and turn off anything that will save power (like the
  4137.   transceiver).
  4138.  
  4139.   8.3.7.  Miscellaneous functions
  4140.  
  4141.   Things like a reset function, so that if things go south, the driver
  4142.   can try resetting the card as a last ditch effort.  Usually done when
  4143.   a Tx times out or similar. Also a function to read the statistics
  4144.   registers of the card if so equipped.
  4145.  
  4146.   8.4.  Interrupts and Linux
  4147.  
  4148.   There are two kinds of interrupt handlers in Linux: fast ones and slow
  4149.   ones. You decide what kind you are installing by the flags you pass to
  4150.   irqaction(). The fast ones, such as the serial interrupt handler, run
  4151.   with _all_ interrupts disabled. The normal interrupt handlers, such as
  4152.   the one for ethercard drivers, runs with other interrupts enabled.
  4153.  
  4154.   There is a two-level interrupt structure. The `fast' part handles the
  4155.   device register, removes the packets, and perhaps sets a flag.  After
  4156.   it is done, and interrupts are re-enabled, the slow part is run if the
  4157.   flag is set.
  4158.  
  4159.   The flag between the two parts is set by:
  4160.  
  4161.        mark_bh(INET_BH);
  4162.  
  4163.   Usually this flag is set within dev_rint() during a received-packet
  4164.   interrupt, and set directly by the device driver during a transmit-
  4165.   complete interrupt.
  4166.  
  4167.   You might wonder why all interrupt handlers cannot run in `normal
  4168.   mode' with other interrupts enabled. Ross Biro uses this scenario to
  4169.   illustrate the problem:
  4170.  
  4171.   ╖  You get a serial interrupt, and start processing it.  The serial
  4172.      interrupt is now masked.
  4173.  
  4174.   ╖  You get a network interrupt, and you start transferring a maximum-
  4175.      sized 1500 byte packet from the card.
  4176.  
  4177.   ╖  Another character comes in, but this time the interrupts are
  4178.      masked!
  4179.  
  4180.   The `fast' interrupt structure solves this problem by allowing
  4181.   bounded-time interrupt handlers to run without the risk of leaving
  4182.   their interrupt lines masked by another interrupt request.
  4183.  
  4184.   There is an additional distinction between fast and slow interrupt
  4185.   handlers -- the arguments passed to the handler. A `slow' handler is
  4186.   defined as
  4187.  
  4188.   ______________________________________________________________________
  4189.  
  4190.                   static void
  4191.                   handle_interrupt(int reg_ptr)
  4192.                   {
  4193.                       int irq = -(((struct pt_regs *)reg_ptr)->orig_eax+2);
  4194.                       struct device *dev = irq2dev_map[irq];
  4195.                   ...
  4196.   ______________________________________________________________________
  4197.  
  4198.   While a fast handler gets the interrupt number directly
  4199.  
  4200.   ______________________________________________________________________
  4201.  
  4202.                   static void
  4203.                   handle_fast_interrupt(int irq)
  4204.                   {
  4205.                   ...
  4206.   ______________________________________________________________________
  4207.  
  4208.   A final aspect of network performance is latency. The only board that
  4209.   really addresses this is the 3c509, which allows a predictive
  4210.   interrupt to be posted. It provides an interrupt response timer so
  4211.   that the driver can fine-tune how early an interrupt is generated.
  4212.  
  4213.   8.5.  Programming the Intel chips (i82586 and i82593)
  4214.  
  4215.   These chips are used on a number of cards, namely the 3c507 ('86), the
  4216.   Intel EtherExpress 16 ('86), Microdyne's exos205t ('86), the Z-Note
  4217.   ('93), and the Racal-Interlan ni5210 ('86).
  4218.  
  4219.   Russ Nelson writes: `Most boards based on the 82586 can reuse quite a
  4220.   bit of their code.  More, in fact, than the 8390-based adapters. There
  4221.   are only three differences between them:
  4222.  
  4223.   ╖  The code to get the Ethernet address,
  4224.  
  4225.   ╖  The code to trigger CA on the 82586, and
  4226.  
  4227.   ╖  The code to reset the 82586.
  4228.  
  4229.   The Intel EtherExpress 16 is an exception, as it I/O maps the 82586.
  4230.   Yes, I/O maps it. Fairly clunky, but it works.
  4231.  
  4232.   Garrett Wollman did an AT&T driver for BSD that uses the BSD
  4233.   copyright. The latest version I have (Sep '92) only uses a single
  4234.   transmit buffer. You can and should do better than this if you've got
  4235.   the memory. The AT&T and 3c507 adapters do; the ni5210 doesn't.
  4236.  
  4237.   The people at Intel gave me a very big clue on how you queue up
  4238.   multiple transmit packets. You set up a list of NOP-> XMIT-> NOP->
  4239.   XMIT-> NOP-> XMIT-> beginning) blocks, then you set the `next' pointer
  4240.   of all the NOP blocks to themselves. Now you start the command unit on
  4241.   this chain. It continually processes the first NOP block. To transmit
  4242.   a packet, you stuff it into the next transmit block, then point the
  4243.   NOP to it. To transmit the next packet, you stuff the next transmit
  4244.   block and point the previous NOP to it. In this way, you don't have to
  4245.   wait for the previous transmit to finish, you can queue up multiple
  4246.   packets without any ambiguity as to whether it got accepted, and you
  4247.   can avoid the command unit start-up delay.'
  4248.  
  4249.   8.6.  Technical information from 3Com
  4250.  
  4251.   If you are interested in working on drivers for 3Com cards, you can
  4252.   get technical documentation from 3Com. Cameron has been kind enough to
  4253.   tell us how to go about it below:
  4254.  
  4255.   3Com's Ethernet Adapters are documented for driver writers in our
  4256.   `Technical References' (TRs). These manuals describe the programmer
  4257.   interfaces to the boards but they don't talk about the diagnostics,
  4258.   installation programs, etc that end users can see.
  4259.  
  4260.   The Network Adapter Division marketing department has the TRs to give
  4261.   away. To keep this program efficient, we centralized it in a thing
  4262.   called `CardFacts.' CardFacts is an automated phone system. You call
  4263.   it with a touch-tone phone and it faxes you stuff. To get a TR, call
  4264.   CardFacts at 408-727-7021. Ask it for Developer's Order Form, document
  4265.   number 9070. Have your fax number ready when you call. Fill out the
  4266.   order form and fax it to 408-764-5004.  Manuals are shipped by Federal
  4267.   Express 2nd Day Service.
  4268.  
  4269.   After you get a manual, if you still can't figure out how to program
  4270.   the board, try our `CardBoard' BBS at 1-800-876-3266, and if you can't
  4271.   do that, write Andy_Chan@3Mail.3com.com and ask him for alternatives.
  4272.   If you have a real stumper that nobody has figured out yet, the fellow
  4273.   who needs to know about it is Steve_Lebus@3Mail.3com.com.
  4274.  
  4275.   There are people here who think we are too free with the manuals, and
  4276.   they are looking for evidence that the system is too expensive, or
  4277.   takes too much time and effort. That's why it's important to try to
  4278.   use CardFacts before you start calling and mailing the people I named
  4279.   here.
  4280.  
  4281.   There are even people who think we should be like Diamond and Xircom,
  4282.   requiring tight `partnership' with driver writers to prevent poorly
  4283.   performing drivers from getting written. So far, 3Com customers have
  4284.   been really good about this, and there's no problem with the level of
  4285.   requests we've been getting. We need your continued cooperation and
  4286.   restraint to keep it that way.
  4287.  
  4288.           Cameron Spitzer, 408-764-6339
  4289.           3Com NAD
  4290.           Santa Clara
  4291.           work: camerons@nad.3com.com
  4292.           home: cls@truffula.sj.ca.us
  4293.  
  4294.   8.7.  Notes on AMD PCnet / LANCE Based cards
  4295.  
  4296.   The AMD LANCE (Local Area Network Controller for Ethernet) was the
  4297.   original offering, and has since been replaced by the `PCnet-ISA'
  4298.   chip, otherwise known as the 79C960.  A relatively new chip from AMD,
  4299.   the 79C960, is the heart of many new cards being released at present.
  4300.   Note that the name `LANCE' has stuck, and some people will refer to
  4301.   the new chip by the old name. Dave Roberts of the Network Products
  4302.   Division of AMD was kind enough to contribute the following
  4303.   information regarding this chip:
  4304.  
  4305.   `As for the architecture itself, AMD developed it originally and
  4306.   reduced it to a single chip -- the PCnet(tm)-ISA -- over a year ago.
  4307.   It's been selling like hotcakes ever since.
  4308.  
  4309.   Functionally, it is equivalent to a NE1500. The register set is
  4310.   identical to the old LANCE with the 1500/2100 architecture additions.
  4311.   Older 1500/2100 drivers will work on the PCnet-ISA.  The NE1500 and
  4312.   NE2100 architecture is basically the same.  Initially Novell called it
  4313.   the 2100, but then tried to distinguish between coax and 10BASE-T
  4314.   cards. Anything that was 10BASE-T only was to be numbered in the 1500
  4315.   range. That's the only difference.
  4316.  
  4317.   Many companies offer PCnet-ISA based products, including HP, Racal-
  4318.   Datacom, Allied Telesis, Boca Research, Kingston Technology, etc.  The
  4319.   cards are basically the same except that some manufacturers have added
  4320.   `jumperless' features that allow the card to be configured in
  4321.   software. Most have not. AMD offers a standard design package for a
  4322.   card that uses the PCnet-ISA and many manufacturers use our design
  4323.   without change.  What this means is that anybody who wants to write
  4324.   drivers for most PCnet-ISA based cards can just get the data-sheet
  4325.   from AMD. Call our literature distribution center at (800)222-9323 and
  4326.   ask for the Am79C960, PCnet-ISA data sheet. It's free.
  4327.  
  4328.   A quick way to understand whether the card is a `stock' card is to
  4329.   just look at it. If it's stock, it should just have one large chip on
  4330.   it, a crystal, a small IEEE address PROM, possibly a socket for a boot
  4331.   ROM, and a connector (1, 2, or 3, depending on the media options
  4332.   offered). Note that if it's a coax card, it will have some transceiver
  4333.   stuff built onto it as well, but that should be near the connector and
  4334.   away from the PCnet-ISA.'
  4335.  
  4336.   There is also some info regarding the LANCE chip in the file lance.c
  4337.   which is included in the standard kernel.
  4338.  
  4339.   A note to would-be card hackers is that different LANCE
  4340.   implementations do `restart' in different ways. Some pick up where
  4341.   they left off in the ring, and others start right from the beginning
  4342.   of the ring, as if just initialised. This is a concern when setting
  4343.   the multicast list.
  4344.  
  4345.   8.8.  Multicast and Promiscuous Mode
  4346.  
  4347.   Another one of the things Donald has worked on is implementing
  4348.   multicast and promiscuous mode hooks.  All of the released (i.e. not
  4349.   ALPHA) ISA drivers now support promiscuous mode.
  4350.  
  4351.   Donald writes: `At first I was planning to do it while implementing
  4352.   either the /dev/* or DDI interface, but that's not really the correct
  4353.   way to do it. We should only enable multicast or promiscuous modes
  4354.   when something wants to look at the packets, and shut it down when
  4355.   that application is finished, neither of which is strongly related to
  4356.   when the hardware is opened or released.
  4357.   I'll start by discussing promiscuous mode, which is conceptually easy
  4358.   to implement. For most hardware you only have to set a register bit,
  4359.   and from then on you get every packet on the wire. Well, it's almost
  4360.   that easy; for some hardware you have to shut the board (potentially
  4361.   dropping a few packet), reconfigure it, and then re-enable the
  4362.   ethercard. This is grungy and risky, but the alternative seems to be
  4363.   to have every application register before you open the ethercard at
  4364.   boot-time.
  4365.  
  4366.   OK, so that's easy, so I'll move on something that's not quite so
  4367.   obvious: Multicast. It can be done two ways:
  4368.  
  4369.   1. Use promiscuous mode, and a packet filter like the Berkeley packet
  4370.      filter (BPF). The BPF is a pattern matching stack language, where
  4371.      you write a program that picks out the addresses you are interested
  4372.      in. Its advantage is that it's very general and programmable. Its
  4373.      disadvantage is that there is no general way for the kernel to
  4374.      avoid turning on promiscuous mode and running every packet on the
  4375.      wire through every registered packet filter. See ``The Berkeley
  4376.      Packet Filter'' for more info.
  4377.  
  4378.   2. Using the built-in multicast filter that most etherchips have.
  4379.  
  4380.   I guess I should list what a few ethercards/chips provide:
  4381.  
  4382.           Chip/card  Promiscuous  Multicast filter
  4383.           ----------------------------------------
  4384.           Seeq8001/3c501  Yes     Binary filter (1)
  4385.           3Com/3c509      Yes     Binary filter (1)
  4386.           8390            Yes     Autodin II six bit hash (2) (3)
  4387.           LANCE           Yes     Autodin II six bit hash (2) (3)
  4388.           i82586          Yes     Hidden Autodin II six bit hash (2) (4)
  4389.  
  4390.   1. These cards claim to have a filter, but it's a simple yes/no
  4391.      `accept all multicast packets', or `accept no multicast packets'.
  4392.  
  4393.   2. AUTODIN II is the standard ethernet CRC (checksum) polynomial. In
  4394.      this scheme multicast addresses are hashed and looked up in a hash
  4395.      table. If the corresponding bit is enabled, this packet is
  4396.      accepted. Ethernet packets are laid out so that the hardware to do
  4397.      this is trivial -- you just latch six (usually) bits from the CRC
  4398.      circuit (needed anyway for error checking) after the first six
  4399.      octets (the destination address), and use them as an index into the
  4400.      hash table (six bits -- a 64-bit table).
  4401.  
  4402.   3. These chips use the six bit hash, and must have the table computed
  4403.      and loaded by the host. This means the kernel must include the CRC
  4404.      code.
  4405.  
  4406.   4. The 82586 uses the six bit hash internally, but it computes the
  4407.      hash table itself from a list of multicast addresses to accept.
  4408.  
  4409.   Note that none of these chips do perfect filtering, and we still need
  4410.   a middle-level module to do the final filtering. Also note that in
  4411.   every case we must keep a complete list of accepted multicast
  4412.   addresses to recompute the hash table when it changes.
  4413.   My first pass at device-level support is detailed in the outline
  4414.   driver skeleton.c
  4415.  
  4416.   It looks like the following:
  4417.  
  4418.   ______________________________________________________________________
  4419.           #ifdef HAVE_MULTICAST
  4420.           static void set_multicast_list(struct device *dev, int num_addrs,
  4421.                            void *addrs);
  4422.           #endif
  4423.           .
  4424.           .
  4425.  
  4426.           ethercard_open() {
  4427.           ...
  4428.           #ifdef HAVE_MULTICAST
  4429.                   dev->set_multicast_list = &set_multicast_list;
  4430.           #endif
  4431.           ...
  4432.  
  4433.           #ifdef HAVE_MULTICAST
  4434.           /* Set or clear the multicast filter for this adaptor.
  4435.              num_addrs -- -1      Promiscuous mode, receive all packets
  4436.              num_addrs -- 0       Normal mode, clear multicast list
  4437.              num_addrs > 0        Multicast mode, receive normal and
  4438.                   MC packets, and do best-effort filtering.
  4439.            */
  4440.           static void
  4441.           set_multicast_list(struct device *dev, int num_addrs, void *addrs)
  4442.           {
  4443.           ...
  4444.   ______________________________________________________________________
  4445.  
  4446.   Any comments, criticism, etc. are welcome.'
  4447.  
  4448.   8.9.  The Berkeley Packet Filter (BPF)
  4449.  
  4450.   The general idea of the developers is that the BPF functionality
  4451.   should not be provided by the kernel, but should be in a (hopefully
  4452.   little-used) compatibility library.
  4453.  
  4454.   For those not in the know: BPF (the Berkeley Packet Filter) is an
  4455.   mechanism for specifying to the kernel networking layers what packets
  4456.   you are interested in. It's implemented as a specialized stack
  4457.   language interpreter built into a low level of the networking code. An
  4458.   application passes a program written in this language to the kernel,
  4459.   and the kernel runs the program on each incoming packet. If the kernel
  4460.   has multiple BPF applications, each program is run on each packet.
  4461.  
  4462.   The problem is that it's difficult to deduce what kind of packets the
  4463.   application is really interested in from the packet filter program, so
  4464.   the general solution is to always run the filter. Imagine a program
  4465.   that registers a BPF program to pick up a low data-rate stream sent to
  4466.   a multicast address.  Most ethernet cards have a hardware multicast
  4467.   address filter implemented as a 64 entry hash table that ignores most
  4468.   unwanted multicast packets, so the capability exists to make this a
  4469.   very inexpensive operation. But with the BFP the kernel must switch
  4470.   the interface to promiscuous mode, receive _all_ packets, and run them
  4471.   through this filter. This is work, BTW, that's very difficult to
  4472.   account back to the process requesting the packets.
  4473.  
  4474.   9.  Networking with a Laptop/Notebook Computer
  4475.  
  4476.   There are currently only a few ways to put your laptop on a network.
  4477.   You can use the SLIP code (and run at serial line speeds); you can buy
  4478.   one of the few laptops that come with a NE2000-compatible ethercard;
  4479.   you can get a notebook with a supported PCMCIA slot built-in; you can
  4480.   get a laptop with a docking station and plug in an ISA ethercard; or
  4481.   you can use a parallel port Ethernet adapter such as the D-Link
  4482.   DE-600.
  4483.  
  4484.   9.1.  Using SLIP
  4485.  
  4486.   This is the cheapest solution, but by far the most difficult. Also,
  4487.   you will not get very high transmission rates. Since SLIP is not
  4488.   really related to ethernet cards, it will not be discussed further
  4489.   here. See the NET-2 Howto.
  4490.  
  4491.   9.2.  Built in NE2000
  4492.  
  4493.   This solution severely limits your laptop choices and is fairly
  4494.   expensive. Be sure to read the specifications carefully, as you may
  4495.   find that you will have to buy an additional non-standard transceiver
  4496.   to actually put the machine on a network. A good idea might be to boot
  4497.   the notebook with a kernel that has ne2000 support, and make sure it
  4498.   gets detected and works before you lay down your cash.
  4499.  
  4500.   9.3.  PCMCIA Support
  4501.  
  4502.   As this area of Linux development is fairly young, I'd suggest that
  4503.   you join the LAPTOPS mailing channel. See ``Mailing lists...''  which
  4504.   describes how to join a mailing list channel.
  4505.  
  4506.   Try and determine exactly what hardware you have (ie. card
  4507.   manufacturer, PCMCIA chip controller manufacturer) and then ask on the
  4508.   LAPTOPS channel. Regardless, don't expect things to be all that
  4509.   simple.  Expect to have to fiddle around a bit, and patch kernels,
  4510.   etc.  Maybe someday you will be able to type `make config' 8-)
  4511.  
  4512.   At present, the two PCMCIA chipsets that are supported are the
  4513.   Databook TCIC/2 and the intel i82365.
  4514.  
  4515.   There is a number of programs on tsx-11.mit.edu in
  4516.   /pub/linux/packages/laptops/ that you may find useful. These range
  4517.   from PCMCIA Ethercard drivers to programs that communicate with the
  4518.   PCMCIA controller chip. Note that these drivers are usually tied to a
  4519.   specific PCMCIA chip (ie. the intel 82365 or the TCIC/2)
  4520.  
  4521.   For NE2000 compatible cards, some people have had success with just
  4522.   configuring the card under DOS, and then booting linux from the DOS
  4523.   command prompt via loadlin.
  4524.  
  4525.   For those that are net-surfing you can try:
  4526.  
  4527.   Don's PCMCIA Stuff <http://cesdis.gsfc.nasa.gov/linux/pcmcia.html>
  4528.  
  4529.   Anyway, the PCMCIA driver problem isn't specific to the Linux world.
  4530.   It's been a real disaster in the MS-DOS world. In that world people
  4531.   expect the hardware to work if they just follow the manual.  They
  4532.   might not expect it to interoperate with any other hardware or
  4533.   software, or operate optimally, but they do expect that the software
  4534.   shipped with the product will function. Many PCMCIA adaptors don't
  4535.   even pass this test.
  4536.  
  4537.   Things are looking up for Linux users that want PCMCIA support, as
  4538.   substantial progress is being made. Pioneering this effort is David
  4539.   Hinds. His latest PCMCIA support package can be obtained from cb-
  4540.   iris.stanford.edu in the directory /pub/pcmcia/. Look for a file like
  4541.   pcmcia-cs-X.Y.Z.tgz where X.Y.Z will be the latest version number.
  4542.   This is most likely uploaded to tsx-11.mit.edu as well.
  4543.  
  4544.   Note that Donald's PCMCIA enabler works as a user-level process, and
  4545.   David Hinds' is a kernel-level solution.  You may be best served by
  4546.   David's package as it is much more widely used.
  4547.  
  4548.   9.4.  ISA Ethercard in the Docking Station.
  4549.  
  4550.   Docking stations for laptops typically cost about $250 and provide two
  4551.   full-size ISA slots, two serial and one parallel port. Most docking
  4552.   stations are powered off of the laptop's batteries, and a few allow
  4553.   adding extra batteries in the docking station if you use short ISA
  4554.   cards. You can add an inexpensive ethercard and enjoy full-speed
  4555.   ethernet performance.
  4556.  
  4557.   9.5.  Pocket / parallel port adaptors.
  4558.  
  4559.   The `pocket' ethernet adaptors may also fit your need.  Until recently
  4560.   they actually costed more than a docking station and cheap ethercard,
  4561.   and most tie you down with a wall-brick power supply.  At present, you
  4562.   can choose from the D-Link, or the RealTek adaptor.  Most other
  4563.   companies treat the programming information as a trade secret, so
  4564.   support will likely be slow in coming. (if ever!)  Xircom (see
  4565.   ``Xircom'') apparently are now releasing their specs, but nobody is
  4566.   currently working on a driver.
  4567.  
  4568.   Note that the transfer speed will not be all that great (perhaps
  4569.   200kB/s tops?) due to the limitations of the parallel port interface.
  4570.  
  4571.   See ``DE-600 / DE-620'' and ``RealTek'' for supported pocket adaptors.
  4572.  
  4573.   You can sometimes avoid the wall-brick with the adaptors by buying or
  4574.   making a cable that draws power from the laptop's keyboard port. (See
  4575.   ``keyboard power'')
  4576.  
  4577.   10.  Miscellaneous.
  4578.  
  4579.   Any other associated stuff that didn't fit in anywhere else gets
  4580.   dumped here. It may not be relevant, and it may not be of general
  4581.   interest but it is here anyway.
  4582.  
  4583.   10.1.  Passing Ethernet Arguments to the Kernel
  4584.  
  4585.   Here are two generic kernel commands  that can be passed to the kernel
  4586.   at boot time. This can be done with LILO, loadlin, or any other
  4587.   booting utility that accepts optional arguments.
  4588.  
  4589.   For example, if the command was `blah' and it expected 3 arguments
  4590.   (say 123, 456, and 789) then, with LILO, you would use:
  4591.  
  4592.   LILO: linux blah=123,456,789
  4593.  
  4594.   Note: PCI cards have their i/o and IRQ assigned by the BIOS at boot.
  4595.   This means that any boot time arguments for a PCI card's IRQ or i/o
  4596.   ports are usually ignored.
  4597.  
  4598.   For more information on (and a complete list of) boot time arguments,
  4599.   please see the BootPrompt-HOWTO
  4600.   <http://sunsite.unc.edu/mdw/HOWTO/BootPrompt-HOWTO.html>
  4601.  
  4602.   10.1.1.  The ether command
  4603.  
  4604.   In its most generic form, it looks something like this:
  4605.  
  4606.        ether=IRQ,BASE_ADDR,PARAM_1,PARAM_2,NAME
  4607.  
  4608.   All arguments are optional.  The first non-numeric argument is taken
  4609.   as the NAME.
  4610.  
  4611.   IRQ: Obvious.  An IRQ value of `0' (usually the default) means to
  4612.   autoIRQ.  It's a historical accident that the IRQ setting is first
  4613.   rather than the base_addr -- this will be fixed whenever something
  4614.   else changes.
  4615.  
  4616.   BASE_ADDR: Also obvious.  A value of `0' (usually the default) means
  4617.   to probe a card-type-specific address list for an ethercard.
  4618.  
  4619.   PARAM_1: It was orginally used as an override value for the memory
  4620.   start for a shared-memory ethercard, like the WD80*3.  Some drivers
  4621.   use the low four bits of this value to set the debug message level.  0
  4622.   -- default, 1-7 -- level 1..7, (7 is maximum verbosity)  8 -- level 0
  4623.   (no messages). Also, the LANCE driver uses the low four bits of this
  4624.   value to select the DMA channel.  Otherwise it uses auto-DMA.
  4625.  
  4626.   PARAM_2: The 3c503 driver uses this to select between the internal and
  4627.   external transceivers.  0 -- default/internal, 1 -- AUI external.  The
  4628.   Cabletron E21XX card also uses the low 4 bits of PARAM_2 to select the
  4629.   output media. Otherwise it detects automatically.
  4630.  
  4631.   NAME: Selects the network device the values refer to.  The standard
  4632.   kernel uses the names `eth0', `eth1', `eth2' and `eth3' for bus-
  4633.   attached ethercards, and `atp0' for the parallel port `pocket'
  4634.   ethernet adaptor. The arcnet driver uses `arc0' as its name.  The
  4635.   default setting is for a single ethercard to be probed for as `eth0'.
  4636.   Multiple cards can only be enabled by explicitly setting up their base
  4637.   address using these LILO parameters.  The 1.0 kernel has LANCE-based
  4638.   ethercards as a special case.  LILO arguments are ignored, and LANCE
  4639.   cards are always assigned `eth<n>' names starting at `eth0'.
  4640.   Additional non-LANCE ethercards must be explicitly assigned to
  4641.   `eth<n+1>', and the usual `eth0' probe disabled with something like
  4642.   `ether=0,-1,eth0'.  ( Yes, this is bug. )
  4643.  
  4644.   10.1.2.  The reserve command
  4645.  
  4646.   This next lilo command is used just like `ether=' above, ie. it is
  4647.   appended to the name of the boot select specified in lilo.conf
  4648.  
  4649.        reserve=IO-base,extent{,IO-base,extent...}
  4650.  
  4651.   In some machines it may be necessary to prevent device drivers from
  4652.   checking for devices (auto-probing) in a specific region. This may be
  4653.   because of poorly designed hardware that causes the boot to freeze
  4654.   (such as some ethercards), hardware that is mistakenly identified,
  4655.   hardware whose state is changed by an earlier probe, or merely
  4656.   hardware you don't want the kernel to initialize.
  4657.  
  4658.   The reserve boot-time argument addresses this problem by specifying an
  4659.   I/O port region that shouldn't be probed. That region is reserved in
  4660.   the kernel's port registration table as if a device has already been
  4661.   found in that region. Note that this mechanism shouldn't be necessary
  4662.   on most machines. Only when there is a problem or special case would
  4663.   it be necessary to use this.
  4664.  
  4665.   The I/O ports in the specified region are protected against device
  4666.   probes. This was put in to be used when some driver was hanging on a
  4667.   NE2000, or misidentifying some other device as its own.  A correct
  4668.   device driver shouldn't probe a reserved region, unless another boot
  4669.   argument explicitly specifies that it do so.  This implies that
  4670.   reserve will most often be used with some other boot argument. Hence
  4671.   if you specify a reserve region to protect a specific device, you must
  4672.   generally specify an explicit probe for that device. Most drivers
  4673.   ignore the port registration table if they are given an explicit
  4674.   address.
  4675.  
  4676.   For example, the boot line
  4677.  
  4678.        LILO: linux  reserve=0x300,32  ether=0,0x300,eth0
  4679.  
  4680.   keeps all device drivers except the ethercard drivers from probing
  4681.   0x300-0x31f.
  4682.  
  4683.   As usual with boot-time specifiers there is an 11 parameter limit,
  4684.   thus you can only specify 5 reserved regions per reserve keyword.
  4685.   Multiple reserve specifiers will work if you have an unusually
  4686.   complicated request.
  4687.  
  4688.   10.2.  Using the Ethernet Drivers as Modules
  4689.  
  4690.   See the insmod(8) manual page for information on passing arguments to
  4691.   the module as it is being loaded.  The command lsmod will show you
  4692.   what modules are loaded, and rmmod will remove them.
  4693.  
  4694.   At present, all the modules are put in the subdirectory modules in
  4695.   your Linux kernel source tree (usually in the form of symbolic links).
  4696.   To actually generate the modules, you have to type make modules after
  4697.   you have finished building the kernel proper. Earlier kernels built
  4698.   them automatically, which wasn't fair to those compiling on 4MB
  4699.   386sx-16 machines.
  4700.  
  4701.   Most modules accept parameters like io=0x340 and irq=12 on the insmod
  4702.   command line. It is STRONGLY ADVISED that you supply these parameters
  4703.   to avoid probing for the card. Unlike PCI and EISA devices, there is
  4704.   no real safe way to do auto-probing for ISA devices, and so it should
  4705.   be avoided when using drivers as modules.
  4706.  
  4707.   A list of all the parameters that each module accepts can be found in
  4708.   the file:
  4709.  
  4710.   /usr/src/linux/Documentation/networking/net-modules.txt
  4711.  
  4712.   It is recommended that you read that to find out what options you can
  4713.   use for your particular card.
  4714.  
  4715.   Once you have figured out the arguments/options you are going to use,
  4716.   you can insert the module by typing as root:
  4717.  
  4718.   ______________________________________________________________________
  4719.           insmod mod_name.o [io=val1[,val2,...]] [irq=val7[,val8,...]]
  4720.   ______________________________________________________________________
  4721.  
  4722.   The comma separated value lists are used for modules that have the
  4723.   capability to handle multiple devices from a single module, such as
  4724.   all the 8390 drivers, and the PLIP driver.
  4725.  
  4726.   Once a module is inserted, then you can use it just like normal, and
  4727.   give ifconfig commands. If you set up your networking at boot, then
  4728.   make sure your /etc/rc* files run the insmod command(s) before getting
  4729.   to the ifconfig command.
  4730.  
  4731.   Also note that a busy module can't be removed. That means that you
  4732.   will have to ifconfig eth0 down  (shut down the ethernet card) before
  4733.   you can remove the module(s).
  4734.  
  4735.   10.2.1.  8390 Based Cards as Modules
  4736.  
  4737.   The present list of 8390 based drivers is: 3c503, ac3200, e2100, hp,
  4738.   hp-plus, ne, smc-ultra and wd. These cards were not supported as
  4739.   modules for kernel versions prior to 1.3.42.  (This does not include
  4740.   some of the separately distributed PCMCIA drivers (e.g. de-650) that
  4741.   are also 8390 based, that have had module support for quite some time
  4742.   now.)
  4743.  
  4744.   If you have an 8390 based card, you may have to insert two modules,
  4745.   8390.o and then the module for your card.  If 8390 support has been
  4746.   built into your kernel, then you will not need to insert the 8390
  4747.   module. (8390 support is built in whenever an 8390 based card is
  4748.   selected to be built into the kernel.) Doing a cat /proc/ksyms | grep
  4749.   8390 will tell you if 8390 support is in your kernel.
  4750.  
  4751.   For an 8390 based card, you will have to remove the card module before
  4752.   removing the 8390 module, as the 8390 module is used by the card
  4753.   module, and thus marked as busy.
  4754.  
  4755.   The 8390 series of network drivers now support multiple card systems
  4756.   without reloading the same module multiple times (memory efficient!)
  4757.   This is done by specifying multiple comma separated values, such as:
  4758.  
  4759.   ______________________________________________________________________
  4760.           insmod 3c503.o io=0x280,0x300,0x330,0x350 xcvr=0,1,0,1
  4761.   ______________________________________________________________________
  4762.  
  4763.   The above would have the one module controlling four 3c503 cards, with
  4764.   card 2 and 4 using external transcievers.
  4765.  
  4766.   It is *STRONGLY RECOMMENDED* that you supply "io=" instead of
  4767.   autoprobing.  If an "io=" argument is not supplied, then the ISA 8390
  4768.   drivers will complain about autoprobing being not recommended, and
  4769.   begrudgingly autoprobe for a *SINGLE CARD ONLY* -- if you want to use
  4770.   multiple cards you *have* to supply an "io=0xNNN,0xQQQ,..." argument.
  4771.  
  4772.   The ne module is an exception to the above. A NE2000 is essentially an
  4773.   8390 chip, some bus glue and some RAM.  Because of this, the ne probe
  4774.   is more invasive than the rest, and so at boot we make sure the ne
  4775.   probe is done last of all the 8390 cards (so that it won't trip over
  4776.   other 8390 based cards) With modules we can't ensure that all other
  4777.   non-ne 8390 cards have already been found. Because of this, the ne
  4778.   module REQUIRES an io=0xNNN argument passed in via insmod. It will
  4779.   refuse to autoprobe.
  4780.  
  4781.   It is also worth noting that auto-IRQ probably isn't as reliable
  4782.   during the flurry of interrupt activity on a running machine. Cards
  4783.   such as the ne2000 that can't get the IRQ setting from an EEPROM or
  4784.   configuration register are probably best supplied with an irq=M
  4785.   argument as well. The file
  4786.  
  4787.   /usr/src/linux/Documentation/networking/net-modules.txt
  4788.  
  4789.   also lists how the interrupt settings are determined for the various
  4790.   cards if an irq=N value is not given.
  4791.  
  4792.   10.3.  Mailing Lists and the Linux Newsgroups
  4793.  
  4794.   If you have questions about your ethernet card, please READ this
  4795.   document first. You may also want to join the NET channel of the Linux
  4796.   mailing lists by sending mail to majordomo@vger.rutgers.edu to get
  4797.   help with what lists are available, and how to join them.
  4798.  
  4799.   Furthermore keep in mind that the NET channel is for development
  4800.   discussions only. General questions on how to configure your system
  4801.   should be directed to comp.os.linux.setup unless you are actively
  4802.   involved in the development of part of the networking for Linux.  We
  4803.   ask that you please respect this general guideline for content.
  4804.  
  4805.   Also, the news groups comp.sys.ibm.pc.hardware.networking and
  4806.   comp.dcom.lans.ethernet should be used for questions that are not
  4807.   Linux specific.
  4808.  
  4809.   10.4.  Related Documentation
  4810.  
  4811.   Much of this info came from saved postings from the comp.os.linux
  4812.   groups, which shows that it is a valuable resource of information.
  4813.   Other useful information came from a bunch of small files by Donald
  4814.   himself. Of course, if you are setting up an Ethernet card, then you
  4815.   will want to read the NET-2 Howto so that you can actually configure
  4816.   the software you will use.  Also, if you fancy yourself as a bit of a
  4817.   hacker, you can always scrounge some additional info from the driver
  4818.   source files as well. There is usually a paragraph or two in there
  4819.   describing any important points before any actual code starts..
  4820.  
  4821.   For those looking for information that is not specific in any way to
  4822.   Linux (i.e. what is 10BaseT, what is AUI, what does a hub do, etc.)  I
  4823.   strongly recommend the Ethernet-FAQ  that is posted regularly to the
  4824.   newsgroup comp.dcom.lans.ethernet.  You can grab it from RTFM which
  4825.   holds all the newsgroup FAQs at the following URL:
  4826.  
  4827.   Usenet FAQs <ftp://rtfm.mit.edu/pub/usenet-by-hierarchy/>
  4828.  
  4829.   You can also have a look at the `Ethernet-HomePage' so to speak, which
  4830.   is at the following URL:
  4831.   Ethernet-HomePage <http://wwwhost.ots.utexas.edu/ethernet/ethernet-
  4832.   home.html>
  4833.  
  4834.   10.5.  Contributors
  4835.  
  4836.   Other people who have contributed (directly or indirectly) to the
  4837.   Ethernet-Howto are, in alphabetical order:
  4838.  
  4839.           Ross Biro               <bir7@leland.stanford.edu>
  4840.           Alan Cox                <iialan@www.linux.org.uk>
  4841.           David C. Davies         <davies@wanton.enet.dec.com>
  4842.           Bjorn Ekwall            <bj0rn@blox.se>
  4843.           David Hinds             <dhinds@allegro.stanford.edu>
  4844.           Michael Hipp            <mhipp@student.uni-tuebingen.de>
  4845.           Mike Jagdis             <jaggy@purplet.demon.co.uk>
  4846.           Duke Kamstra            <kamstra@ccmail.west.smc.com>
  4847.           Russell Nelson          <nelson@crynwr.com>
  4848.           Cameron Spitzer         <camerons@NAD.3Com.com>
  4849.           Dave Roberts            <david.roberts@amd.com>
  4850.           Glenn Talbott           <gt@hprnd.rose.hp.com>
  4851.  
  4852.   These mail addresses are intentionally not `mailto' links so as to
  4853.   protect these people from WWW `spam-bot' filters.  Many thanks to the
  4854.   above people, and all the other unmentioned testers out there.
  4855.  
  4856.   10.6.  Disclaimer and Copyright
  4857.  
  4858.   This document is not gospel. However, it is probably the most up to
  4859.   date info that you will be able to find. Nobody is responsible for
  4860.   what happens to your hardware but yourself. If your ethercard or any
  4861.   other hardware goes up in smoke (...nearly impossible!)  we take no
  4862.   responsibility. ie. THE AUTHORS ARE NOT RESPONSIBLE FOR ANY DAMAGES
  4863.   INCURRED DUE TO ACTIONS TAKEN BASED ON THE INFORMATION INCLUDED IN
  4864.   THIS DOCUMENT.
  4865.  
  4866.   This document is Copyright (c) 1993-1997 by Paul Gortmaker.
  4867.   Permission is granted to make and distribute verbatim copies of this
  4868.   manual provided the copyright notice and this permission notice are
  4869.   preserved on all copies.
  4870.  
  4871.   Permission is granted to copy and distribute modified versions of this
  4872.   document under the conditions for verbatim copying, provided that this
  4873.   copyright notice is included exactly as in the original, and that the
  4874.   entire resulting derived work is distributed under the terms of a
  4875.   permission notice identical to this one.
  4876.  
  4877.   Permission is granted to copy and distribute translations of this
  4878.   document into another language, under the above conditions for
  4879.   modified versions.
  4880.  
  4881.   If you are intending to incorporate this document into a published
  4882.   work, please make contact (vai e-mail) so that you can be supplied
  4883.   with the most up to date information available. In the past, out of
  4884.   date versions of the Linux HowTo documents have been published, which
  4885.   caused the developers undue grief from being plagued with questions
  4886.   that were already answered in the up to date versions.
  4887.  
  4888.   10.7.  Closing
  4889.  
  4890.   If you have found any glaring typos, or outdated info in this
  4891.   document, please send an e-mail. It's getting big, and it is easy to
  4892.   overlook stuff. If you have e-mailed about a change, and it hasn't
  4893.   been included in the next version, please don't hesitate to send it
  4894.   again, as it might have got lost amongst the usual sea of SPAM and
  4895.   junk mail.
  4896.  
  4897.   Thanks!
  4898.  
  4899.